Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No logging trace sent to Console on Linux #493

Open
isamauny opened this issue Nov 7, 2017 · 1 comment
Open

No logging trace sent to Console on Linux #493

isamauny opened this issue Nov 7, 2017 · 1 comment

Comments

@isamauny
Copy link

isamauny commented Nov 7, 2017

Hi,

I have instrumented an MSF4J service with multiple log.info (xxxx) entries. When running on Mac, the log entries show in the console where I start the service. On Linux, they don't- Can't find them anywhere. What's the trick to show them on Console (or send to File) ?

Using release 2.4, with Java 1.8.0_111 on both systems.

Thanks!

@daneshk
Copy link
Contributor

daneshk commented Nov 8, 2017

Hi Isabelle,

logging configuration file(log4j.properties) is packaged from msf4j-core dependency. So MSF4J service depends on msf4j-core will get the default configuration like [1]

  1. https://github.com/wso2/msf4j/blob/master/core/src/main/resources/log4j.properties

I tested in similar linux environment. logs printed in the console successfully according log configuration[1].
Can you please check log4j.properties file packed in your service jar. If those configurations are similar, may be configuration file gets override with a system property defined in linux. Can you check passing log4j.properties file path as below

java -Dlog4j.configuration=file:log4j.properties -jar target/helloworld-2.4.3-SNAPSHOT.jar

Thanks
Danesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants