Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging
Interface LoggerPolicy

All Known Implementing Classes:
DefaultLoggerPolicy

public interface LoggerPolicy

Used for specifying non-configuration-related options of Logger.


Method Summary
 LogCategory getCategory(java.lang.String message)
          Returns the default category for messages.
 int getEntryId(LogLevel level, java.lang.String message)
          Returns the entry id for the specified level and string message.
 LogLevel getLevel(java.lang.String message)
          Returns the default log level for messages.
 boolean overwriteNetworkProtocolProperties()
          If true - the Logger will replace such properties of Logger.getNetworkProtocol() such as MessageServerProtocol.getClientHost(), MessageServerProtocol.getClientId(), MessageServerProtocol.getClientName() and MessageServerProtocol.getClientType() with values of properties LogConfiguration.getApplicationHost() LogConfiguration.getApplicationId(), LogConfiguration.getApplicationName() and LogConfiguration.getApplicationType() of the logger configuration Logger.getConfiguration().
 

Method Detail

getEntryId

int getEntryId(LogLevel level,
               java.lang.String message)
Returns the entry id for the specified level and string message.

Parameters:
level - the level specified
message - string message
Returns:
The id of message

getCategory

LogCategory getCategory(java.lang.String message)
Returns the default category for messages.

Parameters:
message - The message for which the category is evaluated
Returns:
The category

getLevel

LogLevel getLevel(java.lang.String message)
Returns the default log level for messages.

Parameters:
message - The message for which the category is evaluated
Returns:
The category

overwriteNetworkProtocolProperties

boolean overwriteNetworkProtocolProperties()
If true - the Logger will replace such properties of Logger.getNetworkProtocol() such as MessageServerProtocol.getClientHost(), MessageServerProtocol.getClientId(), MessageServerProtocol.getClientName() and MessageServerProtocol.getClientType() with values of properties LogConfiguration.getApplicationHost() LogConfiguration.getApplicationId(), LogConfiguration.getApplicationName() and LogConfiguration.getApplicationType() of the logger configuration Logger.getConfiguration().


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.