Skip to content

Unify logger configuration #19

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

Closed
fblundun opened this issue May 20, 2015 · 2 comments
Closed

Unify logger configuration #19

fblundun opened this issue May 20, 2015 · 2 comments
Assignees
Milestone

Comments

@fblundun
Copy link
Contributor

See #1367

The point of this is that it will be possible to configure the log level for both kinesis-s3 and the KCL by starting the application like this:

java -jar -Dorg.slf4j.simpleLogger.defaultLogLevel=debug kinesis-lzo-sink-0.x.0 --config myhocon
@fblundun fblundun added this to the Version 0.3.0 milestone May 20, 2015
@alexanderdean
Copy link
Member

Can we move the log level config into the hocon?

@fblundun
Copy link
Contributor Author

Looks like you can configure it by changing the system property from inside the app:

val logLevel = config.getString("logLevel")
System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, logLevel)

(from http://stackoverflow.com/questions/14544991/how-to-configure-slf4j-simple)

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

No branches or pull requests

3 participants