Adding the logback.xml file to your resources directory
The logback.xml
file should be added to src/main/resources/
in order to enable logging into your application. The contents of this file will be the same as the testing logback.xml
file as follows:
<?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="30 seconds" > <contextName>TaskTimeTracker</contextName> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern> %d{HH:mm:ss.SSS} [%thread] %-5level %logger{5} - %msg%n </pattern> </encoder> </appender> <logger name="com.gieman.tttracker" level="DEBUG" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="com.gieman.tttracker.dao" level="DEBUG" additivity="false"> <appender-ref ref="STDOUT" /> </logger> ...