[jboss-jira] [JBoss JIRA] (DROOLS-991) File KnowledgeRuntimeLogger does not produce file until close() operation is closed
Anton Giertli (JIRA)
issues at jboss.org
Thu Nov 26 03:19:00 EST 2015
Anton Giertli created DROOLS-991:
------------------------------------
Summary: File KnowledgeRuntimeLogger does not produce file until close() operation is closed
Key: DROOLS-991
URL: https://issues.jboss.org/browse/DROOLS-991
Project: Drools
Issue Type: Enhancement
Reporter: Anton Giertli
Assignee: Mark Proctor
When you use file logger, like this:
KieServices.Factory.get().getLoggers().newFileLogger(session, fileName)
The actual file does not get created until you call close() method.
While this may be beneficial in many use cases(probably the reasoning behind this is performance aspect), when debugging a rule execution, where rule are getting stuck - i.e. the whole JVM becomes unresponsive, then the actual log file will never be created.
Therefore, it would be nice to have this configurable, i.e.
1) Create log file when the close() method is called - better performance
2) Create log file immediately, and update it whenever there is something new to be logged - worse performance, but there will be some log available even if the rule execution will get stuck
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list