[logback-user] programmatic configuration to log to file

Steve Prior sprior at geekster.com
Fri Feb 1 19:21:55 CET 2013


On 2/1/2013 1:17 PM, ceki wrote:
> Hi Steve,
>
> The code for programmatic configuration is good. You just need to reset the
> context before you configure. Add the following line after the definitionof the
> loggerContext variable.
>
>    loggerContext.reset();
>
> HTH,
>

Thanks, that's got it.

Steve


More information about the Logback-user mailing list