How to enable logging in a custom policy
Sourav Ghosh (1●2●6●6)
| asked Jan 16 '13, 10:17 a.m.
edited Jan 16 '13, 1:47 p.m. by Ralph Schoon (63.5k●3●36●46)
I want to see the output for my custom policy. How can I do that?
Can the output be redirected to the ramDebug.log? |
One answer
You can use Log4j's Logger.getLogger(Class) or Logger.getLogger(name) but it will only log to the WAS systemout log. Only RAM loggers can log to ramDebug.log.
The level for non-RAM loggers is Warn. So only Warn and Error will log to the WAS system out log. But be careful what you log. The system out log gets quite full by normal logging. We don't want to have the system out log filled up by noise. Thanks. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.