It's all about the answers!

Ask a question

How to enable logging in a custom policy


Sourav Ghosh (1266) | asked Jan 16 '13, 10:17 a.m.
edited Jan 16 '13, 1:47 p.m. by Ralph Schoon (63.1k33646)
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



permanent link
Rich Kulp (3.6k38) | answered Jan 16 '13, 4:55 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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


Register or to post 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.