|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LmsEventLogger
Facade interface for LMS Events logging.
It allows applications to generate LMS Events with or without specific LMS templates
enumerations.
lmsLogger.log(CommonLmsEnum.GCTI_LOAD_RESOURCE, rcName, errCode);
lmsLogger.log(LogCategory.Application, CommonLmsEnum.GCTI_LOAD_RESOURCE, rcName, errCode);
// or:
lmsLogger.log(2002, rcName, errCode); // 2002 corresponds to CommonLmsEnum.GCTI_LOAD_RESOURCE
lmsLogger.log(LogCategory.Application, 2002, rcName, errCode);
LmsLoggerFactory
,
LmsLoggerFactory.getLogger(Class)
,
LmsLoggerFactory.getLogger(String)
Field Summary | |
---|---|
static java.lang.String |
STR_PSDK_LMS_ALARM_MESSAGE_MARKER
Log marker for LMS Alarm level messages events. It is supposed that LMS Alarm message logged by a LmsLogger may bear this marker. |
static java.lang.String |
STR_PSDK_LMS_MESSAGE_MARKER
Log marker for LMS messages events. It is supposed that every LMS message logged by a LmsLogger will bear this marker. |
Method Summary | |
---|---|
void |
debug(LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a debug message. |
void |
debug(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a debug message. |
void |
error(LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as an error message. |
void |
error(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as an error message. |
void |
fatal(LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a fatal error message. |
void |
fatal(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a fatal error message. |
void |
fatalError(LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a fatal error message. |
void |
fatalError(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a fatal error message. |
void |
info(LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as an info message. |
void |
info(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as an info message. |
void |
log(int key,
java.lang.Object... args)
Logs a localized message. Its usage may look like:
|
void |
log(LmsMessageTemplate key,
java.lang.Object... args)
Logs a localized message. Its usage may look like:
|
void |
log(LogCategory category,
int key,
java.lang.Object... args)
Logs a localized message. Its usage may look like:
|
void |
log(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs a localized message. Its usage may look like:
|
void |
warn(LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a warning message. |
void |
warn(LogCategory category,
LmsMessageTemplate key,
java.lang.Object... args)
Logs localized LMS event as a warning message. |
Methods inherited from interface com.genesyslab.platform.apptemplate.lmslogger.ILoggerEx |
---|
debug, error, fatal, info, trace, warn |
Methods inherited from interface com.genesyslab.platform.commons.log.ILogger |
---|
createChildLogger, debug, debug, debugFormat, error, error, errorFormat, fatalError, fatalError, fatalErrorFormat, info, info, infoFormat, isDebug, isError, isFatalError, isInfo, isWarn, warn, warn, warnFormat |
Field Detail |
---|
static final java.lang.String STR_PSDK_LMS_MESSAGE_MARKER
static final java.lang.String STR_PSDK_LMS_ALARM_MESSAGE_MARKER
Method Detail |
---|
void log(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
lmsLogger.log(LogCategory.Application, CommonLmsEnum.GCTI_APP_STARTED);
lmsLogger.log(LogCategory.Application, CommonLmsEnum.GCTI_LOAD_RESOURCE, rcName, errCode);
category
- the log event category.key
- the key used for localization.args
- optional arguments.void log(LogCategory category, int key, java.lang.Object... args)
lmsLogger.log(LogCategory.Application, 5060); // CommonLmsEnum.GCTI_APP_STARTED
lmsLogger.log(LogCategory.Application, 2002, rcName, errCode); // CommonLmsEnum.GCTI_LOAD_RESOURCE
category
- the log event category.key
- the key used for localization.args
- optional arguments.void log(LmsMessageTemplate key, java.lang.Object... args)
lmsLogger.log(CommonLmsEnum.GCTI_APP_STARTED);
lmsLogger.log(CommonLmsEnum.GCTI_LOAD_RESOURCE, rcName, errCode);
key
- the key used for localization.args
- optional arguments.void log(int key, java.lang.Object... args)
lmsLogger.log(5060); // CommonLmsEnum.GCTI_APP_STARTED
lmsLogger.log(2002, rcName, errCode); // CommonLmsEnum.GCTI_LOAD_RESOURCE
key
- the key used for localization.args
- optional arguments.void debug(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".debug(...)
" method call.debug
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
category
- the log event category.key
- the key used for localization.args
- optional arguments.void debug(LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".debug(...)
" method call.debug
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
key
- the key used for localization.args
- optional arguments.void info(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".info(...)
" method call.info
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
category
- the log event category.key
- the key used for localization.args
- optional arguments.void info(LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".info(...)
" method call.info
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
key
- the key used for localization.args
- optional arguments.void warn(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".warn(...)
" method call.warn
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
category
- the log event category.key
- the key used for localization.args
- optional arguments.void warn(LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".warn(...)
" method call.warn
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
key
- the key used for localization.args
- optional arguments.void error(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".error(...)
" method call.error
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
category
- the log event category.key
- the key used for localization.args
- optional arguments.void error(LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".error(...)
" method call.error
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
key
- the key used for localization.args
- optional arguments.void fatal(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".fatal(...)
" method call.fatal
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
category
- the log event category.key
- the key used for localization.args
- optional arguments.void fatal(LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".fatal(...)
" method call.fatal
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
key
- the key used for localization.args
- optional arguments.void fatalError(LogCategory category, LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".fatal(...)
" method call.fatal
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
category
- the log event category.key
- the key used for localization.args
- optional arguments.void fatalError(LmsMessageTemplate key, java.lang.Object... args)
LmsMessageTemplate.getLevel()
) logged with this method.LmsEventLogger
applies LMS localization and pass this call to actual underlying
log system as ".fatal(...)
" method call.fatal
",
but in case of Message Server appender, or Log4j2
GLmsLayout
,
there will be value of LmsMessageTemplate.getLevel()
.
key
- the key used for localization.args
- optional arguments.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |