Skip to main content

Configuring log4j for OCAP

1 reply [Last post]
Joined: 2007-04-04

I'm trying to turn on the log4j logging in the \ODLSrc\OCAP-1.0\java classes. Specifically in the various *Manager classes, such as EASManager and GraphicsManager.

I see that I need to change Logging.LOGGER from false to true (and just to be safe I changed Logging.PROD_LOGGING from false to true). I recompiled and redeployed the ocap classes.

I am not sure how to point to the log4j properties file when I kick off OCAPMain from the standalone.bat. And I'm not sure what this log4j file should look like.

Thanks for any help,

Scott Kellicker, TVWorks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2009-02-02

Try this:

in $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env

modify verbosity of root logger to DEBUG in
log4j.rootCategory=DEBUG, stdout, R, T

un-comment out the MPE JAVA log line and change verbosity if needed in mpeenv.ini

Hope that helps