[jboss-jira] [JBoss JIRA] (JBRULES-3551) KnowledgeRuntimeLogger should be activable by enabling category logging and send it's output to slf4j
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Wed Aug 8 15:37:13 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet resolved JBRULES-3551.
---------------------------------------
Assignee: Geoffrey De Smet (was: Mark Proctor)
Fix Version/s: 5.5.0.Beta1
Resolution: Done
Use org.drools.logger.KnowledgeRuntimeLoggerFactory#newConsoleLogger, that will log to slf4j-api, from there you can configure it to log to a file (or rolling files or chainsaw or ...)
> KnowledgeRuntimeLogger should be activable by enabling category logging and send it's output to slf4j
> -----------------------------------------------------------------------------------------------------
>
> Key: JBRULES-3551
> URL: https://issues.jboss.org/browse/JBRULES-3551
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-core (expert)
> Environment: http://docs.jboss.org/drools/release/5.4.0.Final/drools-expert-docs/html_single/index.html#d0e3290
> Reporter: Geoffrey De Smet
> Assignee: Geoffrey De Smet
> Fix For: 5.5.0.Beta1
>
>
> Drools's audit logging should log to slf4j, so the user can easily configure advanced logging features such as rolling files, zipped files, ...
> Also enabling the logging should be user friendly. So instead of this:
> {code}
> KnowledgeRuntimeLogger logger =
> KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "logdir/mylogfile");
> ...
> logger.close();
> {code}
> They just enable it in the logger configuration (logback.xml or log4j.xml):
> {code}
> <logger name="org.drools.logger.audit" level="trace"/>
> {code}
> This way, drools's audit logging is no longer the odd duck in the normal logging output.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list