Software Defined Networking
1827697 Members
3108 Online
109967 Solutions
New Discussion

Logging

 
ssrirama
Advisor

Logging

private Logger logger = LoggerFactory.getLogger(getClass());

 

^That is the sample code provided in the SDK and it logs information to /opt/sdn/virgo/serviceability/logs/log.log.

 

How can I programmatically specify a different location for information to be logged to?

1 REPLY 1
Joetel
Frequent Advisor

Re: Logging

Hi ssrirama,

 

I think you would have to do that by setting the

log4j.appender.FILE.File

configurable parameter. Have a look here for the usage and other options:

http://www.tutorialspoint.com/log4j/log4j_logging_files.htm

 

Let me know if this of help to you.

 

Best regards,

 

Wouter

 

HP SDN Team