On Wed, Apr 8, 2020 at 10:17 PM Piviul <piv...@riminilug.it> wrote:

> Il 06/04/20 14:15, Nick Couchman ha scritto:
>
> By default it should log at the INFO level, but instead of removing the
> line, try changing the root level option to either info or warn (or maybe
> warning).
>
> you are right: putting this code in logback.xml configuration tag, only
> info or more are logged
>
>     <!-- Appender for normal logs -->
>     <appender name="GUAC-INFO" class="ch.qos.logback.core.ConsoleAppender">
>         <encoder>
>             <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -
> %msg%n</pattern>
>         </encoder>
>     </appender>
>
>
>     <!-- Log at INFO level -->
>     <root level="info">
>         <appender-ref ref="GUAC-INFO"/>
>     </root>
>
>
> Many thanks!
>

If what you're looking for is the default (logging at the "info" level),
you can simply remove that file. You only need to provide your own
logback.xml if you want to override the default configuration, typically
because you want to enable debug-level logging. The default configuration
is equivalent to what you have above.

- Mike

Reply via email to