[logback-dev] [JIRA] Commented: (LBCLASSIC-284) Make it possible to log to different appenders at different levels from the same logger
Iwein Fuld (JIRA)
noreply-jira at qos.ch
Sat Dec 10 08:29:16 CET 2011
[ http://jira.qos.ch/browse/LBCLASSIC-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12333#action_12333 ]
Iwein Fuld commented on LBCLASSIC-284:
--------------------------------------
I got a better solution from a subscriber of my blog using LevelAppender. Still I think it would be nicer to solve it in the configuration.
> Make it possible to log to different appenders at different levels from the same logger
> ---------------------------------------------------------------------------------------
>
> Key: LBCLASSIC-284
> URL: http://jira.qos.ch/browse/LBCLASSIC-284
> Project: logback-classic
> Issue Type: Improvement
> Affects Versions: 0.9.28
> Reporter: Iwein Fuld
> Assignee: Logback dev list
>
> I found a requirement in the wild to log trace and above statements to one appender, and debug and above to another. This needed to be configured for a particular package. My preferred solution would be to use something like https://gist.github.com/1104145, but that doesn't work.
> There is a workaround of using a filter inside the appender, but that isn't as pretty as I would like. ( http://iweinfuld.posterous.com/ )
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list