Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging
Interface LoggerEx

All Superinterfaces:
ILogger
All Known Subinterfaces:
InternalRootLogger, RootLogger
All Known Implementing Classes:
AbstractLogger, Logger, LoggerWraper

public interface LoggerEx
extends ILogger

LoggerEx interface, extends ILogger interface.


Method Summary
 boolean canLogMessage(LogLevel level)
          Determines if given level is enough for logging in current configuration.
 LoggerEx createChildLoggerEx(java.lang.String name)
          Creates a new child logger.
 java.lang.String getName()
          Returns name of the logger
 RootLogger getRootLogger()
          Gets instance of root logger.
 void write(int messageId, java.lang.Object[] args)
          This method extracts the template for formatting messages (by messageId) from lms file(s) and creates the message using information from that template.
 void write(LogEntry entry)
          Writes the passed LogEntry to all outputs.
 
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

getName

java.lang.String getName()
Returns name of the logger


createChildLoggerEx

LoggerEx createChildLoggerEx(java.lang.String name)
                             throws LoggerException
Creates a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name]

Parameters:
name - The Subname of this logger
Throws:
LoggerException

write

void write(int messageId,
           java.lang.Object[] args)
This method extracts the template for formatting messages (by messageId) from lms file(s) and creates the message using information from that template. The created message is sent to all outputs, and formatted as defined by the applyConfiguration method.

Parameters:
messageId - The of message to be wriiten
args - Additional arguments

write

void write(LogEntry entry)
Writes the passed LogEntry to all outputs. Please note: This method does not format messages (i.e. no templates are extracted from lms files and no formatting is done to the string message). Instead all information about message is read from LogEntry. If lms-based formatting is needed then please use the overload: write(int, object[]) The time of the message is converted, as defined by logger settings.

Parameters:
entry - The LogEntry which contains info about message

getRootLogger

RootLogger getRootLogger()
Gets instance of root logger.

Returns:
instance of root logger

canLogMessage

boolean canLogMessage(LogLevel level)
Determines if given level is enough for logging in current configuration.

Parameters:
level - log level to check
Returns:
true, if message is able to be printed with given level

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.