Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


How do I create my own log file

asked 2016-05-30 11:13:54 -0800

mahanare gravatar image

updated 2016-05-30 13:39:37 -0800

jgoodyear gravatar image


I would like to generate custom log files (not just karaf.log), is that possible? which configuration file I need to modify?

I would like to have multiple log files as per the business use cases so as it is easy to debug instead of bloating a single file.

Can someone help me with it?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-05-30 13:39:07 -0800

jgoodyear gravatar image

Create a new File Appender for your logs for each business use case.

See this post as an example of separating Karaf and Camel logging:

edit flag offensive delete publish link more

answered 2016-05-31 09:41:53 -0800

mahanare gravatar image

Thanks, i get this point of log4j configuration.

though I change in org.ops4j.pax.logging.cfg in my dist/src/main/assembly/etc, the changes were not going into the target/assembly/etc folder. I do see org.ops4j.pax.logging.cfg file there but it is not the one i made changes.

Also tried to create /dist/src/main/resources folder and placed the file there in assembly/etc path but no luck.

could you please suggest me? i am sure i am missing something simple

edit flag offensive delete publish link more


Are you attempting to configure the distribution being built or configuring a distribution you've downloaded from ODL?

jgoodyear ( 2016-05-31 11:31:16 -0800 )edit

The above instructions are for configuring a distribution kit you've downloaded, not the source build.

jgoodyear ( 2016-05-31 11:31:47 -0800 )edit

yes, i am trying to build, it is not the same ODL distribution. but it is ODL (we are using BE). If i change the file manually, it seem to reflect, but trying to make sure I commit the change so that my team gets benefit. build is not pulling my changes.

mahanare ( 2016-05-31 11:41:13 -0800 )edit
Login/Signup to Answer


Asked: 2016-05-30 11:13:54 -0800

Seen: 378 times

Last updated: May 31 '16