SD-WAN

 View Only
  • 1.  Logging

    Posted Dec 22, 2014 12:57 PM

    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?



  • 2.  RE: Logging

    Posted Jan 02, 2015 04:40 AM

    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