Hi Ronny,

YAML doesn't support tabs. Replace the tabs in front of your package name with 
2 spaces.

Cheers,
Jochen

> Am 08.02.2017 um 17:16 schrieb Ronny X <[email protected]>:
> 
> Hi guys,
> 
> I'm using dropwizard 1.0.5.
> 
> There I want to achieve a custom log level for a specific package. So I added 
> a "loggers" section o my configuration.yaml file. But when I add this 
> section, currently nothing is logged any more and furthernore dropwizard 
> shuts down immediatly after start.
> 
> This configuration is working fine:
> 
> # Logging settings
> logging:
> 
>   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, 
> TRACE, or ALL.
>   level: INFO
> 
>   appenders:
>     - type: console
>     - type: file
>       currentLogFilename: log/app.log
>       threshold: ALL
>       archive: true
>       archivedLogFilenamePattern: log/app.log-%d.log
>       archivedFileCount: 5
>       timeZone: UTC
>       logFormat: # TODO
> 
> And this configuration is NOT working:
> 
> # Logging settings
> logging:
> 
>   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, 
> TRACE, or ALL.
>   level: INFO
>   
>   loggers:
>       de.mycompany.mypackage: DEBUG
> 
>   appenders:
>     - type: console
>     - type: file
>       currentLogFilename: log/app.log
>       threshold: ALL
>       archive: true
>       archivedLogFilenamePattern: log/app.log-%d.log
>       archivedFileCount: 5
>       timeZone: UTC
>       logFormat: # TODO
> 
> So my question is, am I doing something wrong or is it a bug?
> 
> Thanks!
> 
> 
> -- 
> 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]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to