Direct Karaf.log to stdout

111 views
Skip to first unread message

Miel Vander Sande

unread,
Oct 4, 2021, 3:45:46 AM10/4/21
to vocbench-user

Hello vocbench team (and others)!

How can you write the logs to stdout instead orf Karaf.log?

Best,

Miel

Armando Stellato

unread,
Oct 4, 2021, 6:42:30 AM10/4/21
to Miel Vander Sande, vocbench-user

Dear Miel,

 

In semanticturkey-<ver>\etc you can find everything about configuring ST.

 

In particular, this file: org.ops4j.pax.logging.cfg holds the configuration.

 

As you can see though, it’s already configured for printing to the console (and indeed it does). The difference is that in the karaf log you see the logs of the whole container while in the console you see only those of Semantic Turkey, which I guess are those you need.

 

Pls consider that ST does not print much at INFO level, so what you see is mostly stacktraces when an error occurs (both in console and on file)

 

Kind Regards,

 

Armando

 

--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/af119217-4348-41aa-9782-7339f3d081b6n%40googlegroups.com.

Miel Vander Sande

unread,
Oct 4, 2021, 9:59:49 AM10/4/21
to vocbench-user
Hi Armando,

Thanks for the swift reply! I guess its indeed a matter of switching things to the Console appender and override the .cfg in my docker container.

Best,

Miel

Op maandag 4 oktober 2021 om 12:42:30 UTC+2 schreef stel...@uniroma2.it:
Reply all
Reply to author
Forward
0 new messages