Logging Best Practices
Logging in Java Reference: https://wiki.opendaylight.org/view/BestPractices/Logging_Best_Practices Java provides a diverse set of logging APIs and implementations. OpenDaylight has selected SLF4J API , with the implementation being provided by the Karaf container. The primary reasons for this decision are: proper split between API and implementation, allowing us to change the implementation without impacting code ability to provide legacy APIs (JUL, JCL, etc.) for third-party code Message levels SLF4J defines five levels of logging messages, ranging from TRACE to ERROR . The guidelines for their use are very vague and in the grand UNIX tradition mix severity of the message with its granularity. The following summary defines the basic rules on when to use a specific level, who the target audience is and how any message of the specified level will be interpreted. Note that all events with level INFO or higher present an API-like contract...