Hi Gilberto,

does it work when you try configuring your loggers as described in the 
documentation?
https://www.dropwizard.io/en/latest/manual/core.html#logging 
<https://www.dropwizard.io/en/latest/manual/core.html#logging>

Best regards,
Jochen

> Am 23.10.2019 um 19:48 schrieb Gilberto Minozzi 
> <[email protected]>:
> 
> Hi everybody,
> 
> I try to use the latest release rc-11 and I have a problem logging in file 
> (in console it works) in package different from the main one.
> 
> Gilberto
> 
> PS: logback.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration scan="true">
> 
>       <property name="HOME_LOG" value="logs\app.log" />
> 
>       <appender name="CONSOLE"
>               class="ch.qos.logback.core.ConsoleAppender">
>               <layout class="ch.qos.logback.classic.PatternLayout">
>                       <Pattern>
>                               %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - 
> %msg%n
>                       </Pattern>
>               </layout>
>       </appender>
> 
>       <appender name="FILE" class="ch.qos.logback.core.FileAppender">
>               <file>${HOME_LOG}</file>
>               <append>true</append>
>               <immediateFlush>true</immediateFlush>
>               <encoder>
>                       <pattern>%d %p %c{1.} [%t] %m%n</pattern>
>               </encoder>
>       </appender>
> 
>       <logger name="it.gibba.drop" level="debug">
>               <appender-ref ref="FILE" />
>               <appender-ref ref="CONSOLE" />
>       </logger>
> 
>       <root level="error">
>               <appender-ref ref="CONSOLE" />
>       </root>
> 
> </configuration>
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-user/bfbf923c-a2b0-4251-9554-d39572b44c55%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dropwizard-user/bfbf923c-a2b0-4251-9554-d39572b44c55%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <project structure.PNG>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/0CF46D6E-F199-42CB-8FA2-049D3EEBF131%40schalanda.name.

Reply via email to