What happens if you remove the `level` and `appenders` declarations? i.e.

    logging:
      loggers:
        "com.speedingplanet" :
          level: DEBUG
          appenders:
             - type: console

This should just be a sanity check, since the values you're setting for
`level` and `appenders` are the defaults. Omitting them shouldn't change
anything. The codepaths that handle logging configuration are pretty
complicated, so I'm curious if there's some unexpected behavior happening
when you override with defaults.

On Thu, Jul 7, 2016 at 9:41 AM, John Paxton <[email protected]> wrote:

> Hi,
>
> All I want to do is customize the console logging level for a particular
> package. Dropwizard 0.9.1. Here's my YAML:
>
> # Logging settings.
> logging:
>
>   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, 
> TRACE, or ALL.
>   level: INFO
>
>   loggers:
>     "com.speedingplanet" :
>       level: DEBUG
>       appenders:
>         - type: console
>
>   appenders:
>     - type: console
>       threshold: ALL
>
>
> And here are the relevant portions of a class under
> com.speedingplanet.banking.resources
>
>
> // Class level
>
> private static final Logger LOGGER = LoggerFactory.getLogger
> (TransactionResource.class);
>
> ...
>
> // Inside a method
> LOGGER.debug("*************************************************************************");
> LOGGER.info("-------------------------------------------------------------------------");
> LOGGER.warn("=========================================================================");
>
> From what I've read, this should send to the console INFO level logging
> for everything but com.speedingplanet.*. For that, it should send all
> logging, no matter what.
> But instead, I only see the WARN level logging. Which is weird, because
> you would figure I'd get the INFO level as well, but no.
>
> I've been wracking my brain (and Stack Overflow) on this for a while. Any
> help would be appreciated.
>
> --
> 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.
>



-- 
Evan Meagher

-- 
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