[ https://issues.apache.org/jira/browse/LOGCXX-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thorsten Schöning resolved LOGCXX-357. -------------------------------------- Resolution: Not A Problem This should be asked on the users mailing list. I think you need to set additivity to false. > Different appenders for a single class (logger) depending on the level > ---------------------------------------------------------------------- > > Key: LOGCXX-357 > URL: https://issues.apache.org/jira/browse/LOGCXX-357 > Project: Log4cxx > Issue Type: Bug > Components: Configurator > Affects Versions: 0.10.0 > Environment: Windows XP, Visual C++ 2008 > Reporter: granjon > Assignee: Curt Arnold > Priority: Minor > > Hello, > Sorry if my request is maybe more a question than a bug. > I use a file as a configurator and I want to know if it's possible, (for > example playing with the fact that all logs are sent to the root logger) to > have in a same C++ class using a single logger, all logs sent to a rolling > file (starting at the "TRACE" level) and only logs at the minimum of the WARN > level, be sent to the Event Viewer ? > I thought the example below would do so, but it doesn't work. TRACE logs are > also sent to the Event Viewer : > # Set root logger level > log4j.rootLogger=WARN, A1, Eventlog > log4j.logger.CMainApplication=TRACE, Rollingfile > log4j.logger.CLine=TRACE, Rollingfile > log4j.logger.CLineFaceavant=TRACE, Rollingfile > log4j.logger.CLineCeramiques=TRACE, Rollingfile > If it's not clear enough, please let me know (ask for further detail if > necessary) > Thanks > Raphaël -- This message was sent by Atlassian JIRA (v6.1.5#6160)