Hi Following is a sample logback.xml, to be placed in the resource folder
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<logger name="<PACKAGE ON WHICH YOU WOULD LIKE TO ENABLE DEBUGGING (EXAMPLE: com.mypackage)>" level="DEBUG" />
<root level="ERROR">
<appender-ref ref="STDOUT" />
<appender-ref ref="DAILY_ROLLING" />
<appender-ref ref="SYSLOG" />
</root>
</configuration>
Change <PACKAGE ON WHICH YOU WOULD LIKE TO ENABLE DEBUGGING (EXAMPLE: com.mypackage))>
with your own package on which you would like to enable DEBUG.
Alternatively, if you would like to enable root level on all the packages replace <root level="ERROR" >
with <root level="DEBUG" >
. And it will print debug messages of all the code even if it's printed in dependencies. Also, you can remove <logger name="<PACKAGE ON WHICH YOU WOULD LIKE TO ENABLE DEBUGGING (EXAMPLE: com.mypackage)>" level="debug" />
if the log level of your package is the same as root level.