Configuration

logback.xml:
define your basePackage log level

<logger name="example.u2ware.springfield" level="DEBUG" />

logback.xml

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%d{HH:mm:ss} [%thread] %-5level %logger{36} # %method [%line] - %msg%n</Pattern>
    </layout>
  </appender>


  <logger name="org.springframework" level="OFF" />
  <logger name="org.hibernate" level="OFF" />
  <logger name="org.mybatis" level="OFF" />
  <logger name="org.thymeleaf" level="OFF" />
  <logger name="com.u2ware.springfield" level="DEBUG" />

  <logger name="example.u2ware.springfield" level="DEBUG" />

  <root level="OFF">
    <appender-ref ref="STDOUT" />
  </root>
        
</configuration>