Ask Your Question
0

configuration/logback.xml does not become effective

asked 2014-11-15 09:18:34 -0700

skywalker gravatar image

I am using the integration project, stable helium branch.

The settings in integration/distributions/extra/karaf/target/assembly/configuration/logback.xml don't seem to have any impact on the logging messages.

With the command log:tail I see a lot of messages. I would want to disable continuous and annoying warnings from:

org.opendaylight.controller.sal-inmemory-datastore
org.opendaylight.controller.md.statistics-manager
org.opendaylight.controller.sal-broker-impl

so here it is a radical logback test file that I have used:

http://s000.tinyupload.com/download.php?file_id=46280438949280796698&t=4628043894928079669833921

Strangely enough, it does not limit the logs. Are you facing the same problem? How did you fix it?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-11-21 06:17:41 -0700

Dana gravatar image

Hi, Helium is based on Karaf and karaf does ignore logback file. If you want to disable warnings, you can set log level ERROR on those components (in karaf console):

log:set ERROR org.opendaylight.controller.sal-inmemory-datastore
log:set ERROR org.opendaylight.controller.md.statistics-manager
log:set ERROR org.opendaylight.controller.sal-broker-impl

Hope it helps.

edit flag offensive delete publish link more

Comments

Does this work for you? I got the same problem, using logback.xml and set the three components to loglevel error. if i use log:get at karaf shell on one of these components the log level is "error" like i had configured in the lockback.xml but in the log are still warn output messages! so for my understanding the log level is set right but level error still prints warn messages. perhaps log level error includes warn messages? is there another way to disable the periodic warn messages (every 10s) for these components?

mawil ( 2014-11-24 03:16:35 -0700 )edit
0

answered 2016-08-11 05:33:31 -0700

danielZt gravatar image

In Beryllium target/assembly/etc/org.ops4j.pax.logging.cfg is the file in which the logging levels can be set.

The logging levels set using log:set <level> [logger] are saved there.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-15 09:18:34 -0700

Seen: 241 times

Last updated: Aug 11 '16