Package org.jivesoftware.util
Class Log
java.lang.Object
org.jivesoftware.util.Log
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemProperty<Boolean>
static final SystemProperty<Boolean>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the directory that log files exist in.static org.apache.logging.log4j.Level
static void
markOpenfireLogFile
(String username) static void
static void
setDebugEnabled
(boolean enabled) static void
setTraceEnabled
(boolean enabled)
-
Field Details
-
DEBUG_ENABLED
-
TRACE_ENABLED
-
-
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
-
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.
-