Platform SDK Java 8.5 API Reference

com.genesyslab.platform.apptemplate.lmslogger
Interface ILoggerEx

All Superinterfaces:
ILogger
All Known Subinterfaces:
LmsEventLogger
All Known Implementing Classes:
AbstractLmsEventLogger, DirectLmsEventLogger, JulLmsEventLogger, LmsLoggerFactory.WrappedLogger, Log4j2LmsEventLogger, Log4jLmsEventLogger, SilentLmsEventLogger, SimpleLmsEventLogger, Slf4jLmsEventLogger

public interface ILoggerEx
extends ILogger

Extension of PSDK Common logging interface with methods named in style of common logging interfaces like Log4j2.


Method Summary
 void debug(java.lang.String message, java.lang.Object... args)
          Logs formatted debug message with optional arguments.
 void error(java.lang.String message, java.lang.Object... args)
          Logs a message at the ERROR level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 void fatal(java.lang.String message, java.lang.Object... args)
          Logs a message at the FATAL ERROR level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 void info(java.lang.String message, java.lang.Object... args)
          Logs a message at the INFO level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 void trace(java.lang.String message, java.lang.Object... args)
          Logs formatted trace message with optional arguments.
 void warn(java.lang.String message, java.lang.Object... args)
          Logs a message at the WARNING level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 
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
 

Method Detail

fatal

void fatal(java.lang.String message,
           java.lang.Object... args)
Logs a message at the FATAL ERROR level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 log.fatal("Value is ''{0}''", 1);
 log.fatal("Value for index: [{0}] = {1}", ind, val);

Note: Some of PSDK supported logging frameworks (namely "Slf4J" and "java.util.logging") do not support FATAL ERROR messages level.
So, in Slf4J logging adapter PSDK marks such messages with "PSDK_FATAL_MESSAGE" marker.
In java.util.logging adapter this level is processed as ERROR (SEVERE).

Parameters:
message - the message to log.
args - parameters to the message.
See Also:
MessageFormat

error

void error(java.lang.String message,
           java.lang.Object... args)
Logs a message at the ERROR level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 log.error("Value is ''{0}''", 1);
 log.error("Value for index: [{0}] = {1}", ind, val);

Parameters:
message - the message to log.
args - parameters to the message.
See Also:
MessageFormat

warn

void warn(java.lang.String message,
          java.lang.Object... args)
Logs a message at the WARNING level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 log.warn("Value is ''{0}''", 1);
 log.warn("Value for index: [{0}] = {1}", ind, val);

Parameters:
message - the message to log.
args - parameters to the message.
See Also:
MessageFormat

info

void info(java.lang.String message,
          java.lang.Object... args)
Logs a message at the INFO level.
To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 log.info("Value is ''{0}''", 1);
 log.info("Value for index: [{0}] = {1}", ind, val);

Parameters:
message - the message to log.
args - parameters to the message.
See Also:
MessageFormat

debug

void debug(java.lang.String message,
           java.lang.Object... args)
Logs formatted debug message with optional arguments. To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 log.debug("Value is ''{0}''", 1);
 log.debug("Value for index: [{0}] = {1}", ind, val);

Parameters:
message - message with format tags
args - arguments for format
See Also:
MessageFormat

trace

void trace(java.lang.String message,
           java.lang.Object... args)
Logs formatted trace message with optional arguments. To format log messages PSDK uses MessageFormat class.
Quick examples on the rules of formatting:
 log.trace("Value is ''{0}''", 1);
 log.trace("Value for index: [{0}] = {1}", ind, val);

Parameters:
message - message with format tags
args - arguments for format
See Also:
MessageFormat

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.