Not able to call Logback directly
rohit-gandhe opened this issue · 1 comments
rohit-gandhe commented
Just using those two dependencies, I am not able to import Logback classes directly
import ch.qos.logback.classic.Level; import ch.qos.logback.classic.Logger;
I want to be able to set the root logger's log level from code in order to change it dynamically by reading the lambda environment variable. This allows me to change the level by just saving the lambda instead of deploying it.
igorakkerman commented
Thanks for using this library.
In order to access the Logback classes at compile time, you can change the dependency scope from runtime to compile:
Gradle:
implementation 'org.jlib:jlib-awslambda-logback:1.0.0'
Maven (compile scope is the default):
<dependency>
<groupId>org.jlib</groupId>
<artifactId>jlib-awslambda-logback</artifactId>
<version>1.0.0</version>
</dependency>