]
Petr Široký resolved DROOLS-380.
--------------------------------
Assignee: Petr Široký (was: Mark Proctor)
Fix Version/s: 6.2.0.Final
Resolution: Done
Fixed by
Example 4.20 file logger newFileLogger
--------------------------------------
Key: DROOLS-380
URL:
https://issues.jboss.org/browse/DROOLS-380
Project: Drools
Issue Type: Bug
Affects Versions: 6.0.0.Final
Reporter: Matteo Mortari
Assignee: Petr Široký
Fix For: 6.2.0.Final
In the documentation [1] example 4.20 mention the following code snippet.
{{KieRuntimeLogger logger = KieServices.Factory.get().newFileLogger(ksession,
"logdir/mylogfile");}}
However that doesn't compile. I believe is missing a {{.getLoggers()}} so the proper
snippet, I believe, was intended as
{{KieRuntimeLogger logger =
KieServices.Factory.get().getLoggers().newFileLogger(ksession,
"logdir/mylogfile");}}
Ciao
MM
References:
[1]
http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html_single/...