Class Log

java.lang.Object
org.jivesoftware.util.Log

public final class Log extends Object
Openfire makes use of a logging facade (slf4j) to manage its log output. The facade is backed up by Log4j by default. This class provides utility methods.

Additionally, this class provides methods that can be used to record logging statements. These methods are exact duplicates of the previous Log implementation of Openfire and are kept for backwards-compatibility (the are deprecated). These methods will delegate logging functionality to slf4j. Instead of these methods, slf4j logging functionality should be used directly.

Author:
Guus der Kinderen, guus.der.kinderen@gmail.com
See Also:
  • Field Details

  • Constructor Details

    • Log

      public Log()
  • Method Details

    • setDebugEnabled

      public static void setDebugEnabled(boolean enabled)
    • setTraceEnabled

      public static void setTraceEnabled(boolean enabled)
    • getRootLogLevel

      public static org.apache.logging.log4j.Level getRootLogLevel()
    • rotateOpenfireLogFile

      public static void rotateOpenfireLogFile()
    • markOpenfireLogFile

      public static void markOpenfireLogFile(String username)
    • getLogDirectory

      public static String getLogDirectory()
      Returns the directory that log files exist in. The directory name will have a File.separator as the last character in the string.
      Returns:
      the directory that log files exist in.