Package org.jivesoftware.util
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:
- http://www.slf4j.org/
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Boolean>
DEBUG_ENABLED
static SystemProperty<Boolean>
TRACE_ENABLED
-
Constructor Summary
Constructors Constructor Description Log()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getLogDirectory()
Returns the directory that log files exist in.static org.apache.logging.log4j.Level
getRootLogLevel()
static void
markOpenfireLogFile(String username)
static void
rotateOpenfireLogFile()
static void
setDebugEnabled(boolean enabled)
static void
setTraceEnabled(boolean enabled)
-
-
-
Field Detail
-
DEBUG_ENABLED
public static final SystemProperty<Boolean> DEBUG_ENABLED
-
TRACE_ENABLED
public static final SystemProperty<Boolean> TRACE_ENABLED
-
-
Method Detail
-
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.
-
-