Ask Your Question
0

How do I create my own log file

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

mahanare gravatar image

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

jgoodyear gravatar image

Hi,

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
0

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

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: http://camel.465427.n5.nabble.com/Log...

edit flag offensive delete publish link more
0

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

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

Comments

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 -0700 )edit

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

jgoodyear ( 2016-05-31 11:31:47 -0700 )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 -0700 )edit
Login/Signup to Answer

Stats

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

Seen: 103 times

Last updated: May 31 '16