Ask Your Question
0

Debug logs not getting displayed [closed]

asked 2014-05-28 05:44:41 -0700

screwgoth gravatar image

I'm a Java as well as ODL noob, sok please bear with me. I'm trying to get my hands dirty with Controller's code by trying to understand the SimpleForwarding module. As a first step, I tried to put a few log.debug()s in the code. Then, I successfully installed the SimpleForwarding bundle and tried to see my logs, but they don't get displayed. Then, I went and updated a log.info() which was getting printed on the console of another module (StatisticsProvider) and updated the message. Again, successful mvn install, restarted the ODL server, but still can't see the updated message. Where might I be going wrong

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by screwgoth
close date 2014-11-17 04:35:37

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-05-28 06:03:36 -0700

screwgoth gravatar image

I just found the answer to my own question when reading a different question : https://ask.opendaylight.org/question/154/how-can-i-change-the-log-level-of-a-bundle-when-running-a-junit-test-under-eclipse/

Basically we need to set the appropriate LogLevels either for the base bundle or the specific internal class. In my case : setLogLevel org.opendaylight.controller.samples.simpleforwarding DEBUG or specifically, setLogLevel org.opendaylight.controller.samples.simpleforwarding.internal.SimpleForwarding DEBUG

Yet another way is to add the following line in the configuration/logback.xml file :

<logger name="org.opendaylight.controller.samples.simpleforwarding" level="DEBUG"/>
edit flag offensive delete publish link more

Comments

If that worked for you then can you mark your answer as accepted? :)

Devin Avery ( 2014-05-28 06:41:45 -0700 )edit

I wish I could. But I don't have enough points (>20). That's why I couldn't close the question either.

screwgoth ( 2014-05-28 06:44:30 -0700 )edit

Question Tools

Follow
1 follower

Stats

Asked: 2014-05-28 05:44:41 -0700

Seen: 231 times

Last updated: May 28 '14