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


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 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

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 :

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


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

1 follower


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

Seen: 381 times

Last updated: May 28 '14