Package com.kheops.util
Class Logger
java.lang.Object
com.kheops.util.Logger
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final String
static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
static void
void
close()
Deprecated, for removal: This API element is subject to removal in a future version.static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static Logger
Deprecated, for removal: This API element is subject to removal in a future version.static org.apache.logging.log4j.Level
getLevel()
int
Deprecated, for removal: This API element is subject to removal in a future version.static void
static void
static void
static void
void
init
(String logPath, String rolloverSchedule, boolean logToConsole, String logLevel, int fileAgeLimit, String logFileName) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.static void
log
(org.apache.logging.log4j.Level level, String message, Throwable throwable, Map<String, String> threadContextValues) static void
setLevel
(org.apache.logging.log4j.Level level) void
setLogLevel
(int logLevel) Deprecated, for removal: This API element is subject to removal in a future version.void
setLogPath
(String logPath) Deprecated, for removal: This API element is subject to removal in a future version.static String
toLevel
(int level) Deprecated, for removal: This API element is subject to removal in a future version.static int
Deprecated, for removal: This API element is subject to removal in a future version.static void
static void
static void
static void
static void
static void
static void
static void
-
Field Details
-
LOG_PATTERN
- See Also:
-
STR_LEVEL_ALL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STR_LEVEL_DEBUG
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STR_LEVEL_INFO
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STR_LEVEL_WARNING
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STR_LEVEL_ERROR
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STR_LEVEL_FATAL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STR_LEVEL_OFF
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
LEVEL_ALL
Deprecated, for removal: This API element is subject to removal in a future version. -
LEVEL_DEBUG
Deprecated, for removal: This API element is subject to removal in a future version. -
LEVEL_INFO
Deprecated, for removal: This API element is subject to removal in a future version. -
LEVEL_WARNING
Deprecated, for removal: This API element is subject to removal in a future version. -
LEVEL_ERROR
Deprecated, for removal: This API element is subject to removal in a future version. -
LEVEL_FATAL
Deprecated, for removal: This API element is subject to removal in a future version. -
LEVEL_OFF
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve an instance of logger by name or create one if it doesn't exist. Deprecated --- Use static methods -
init
@Deprecated(forRemoval=true) public void init(String logPath, String rolloverSchedule, boolean logToConsole, String logLevel, int fileAgeLimit, String logFileName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated --- Does nothing -
setLogPath
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated --- Does nothing -
setLogLevel
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated --- Use Logger.setLevel(Level)- Parameters:
logLevel
- The logLevel to set.
-
getLogLevel
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated --- Use Logger.getLevel() -
setLevel
public static void setLevel(org.apache.logging.log4j.Level level) -
getLevel
public static org.apache.logging.log4j.Level getLevel() -
isAllEnabled
public static boolean isAllEnabled() -
isDebugEnabled
public static boolean isDebugEnabled() -
isInfoEnabled
public static boolean isInfoEnabled() -
isWarningEnabled
public static boolean isWarningEnabled() -
isErrorEnabled
public static boolean isErrorEnabled() -
isFatalEnabled
public static boolean isFatalEnabled() -
toLevel
Deprecated, for removal: This API element is subject to removal in a future version. -
toLevel
Deprecated, for removal: This API element is subject to removal in a future version. -
log
Deprecated, for removal: This API element is subject to removal in a future version.Logs a new message of the specified type.- Parameters:
type
- the type of the messagemessage
- the text of the message Deprecated --- Use static methods
-
log
Deprecated, for removal: This API element is subject to removal in a future version.Logs a new message of the specified type tagged to the specified user.- Parameters:
type
- the type of the messagemessage
- the text of the messageuserName
- the user this message will be tagged to Deprecated --- Use static methods
-
log
Deprecated, for removal: This API element is subject to removal in a future version.Logs a new message of the specified type and includes the stack trace of the specified exception.- Parameters:
type
- the type of the messagemessage
- the text of the messageexception
- a Throwable object for which the stack trace must be written Deprecated --- Use static methods
-
log
@Deprecated(forRemoval=true) public void log(int level, String message, Throwable throwable, String userName) Deprecated, for removal: This API element is subject to removal in a future version.Logs a new message of the specified level tagged to the specified user. Includes the stack trace of the specified exception.- Parameters:
level
- the level of the messagemessage
- the text of the messagethrowable
- a Throwable object for which the stack trace must be writtenuserName
- the user this message will be tagged to Deprecated --- Use static methods
-
close
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated --- Does nothing -
all
-
all
-
all
-
all
-
debug
-
debug
-
debug
-
debug
-
trace
-
trace
-
trace
-
trace
-
error
-
error
-
error
-
error
-
fatal
-
fatal
-
fatal
-
fatal
-
info
-
info
-
info
-
info
-
warning
-
warning
-
warning
-
warning
-
log
-