LoggerPolicy
public final class DefaultLoggerPolicy extends java.lang.Object implements LoggerPolicy
Constructor | Description |
---|---|
DefaultLoggerPolicy() |
Default constructor.
|
DefaultLoggerPolicy(LogLevel level,
LogCategory category,
int entryId,
boolean overwriteNetworkProtocolProps) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
LogCategory |
getCategory(java.lang.String message) |
Returns the 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 log level for messages.
|
boolean |
overwriteNetworkProtocolProperties() |
If true - the
Logger will replace such properties of
Logger.getNetworkProtocol() as
MessageServerProtocol.ClientHost, MessageServerProtocol.ClientId,
MessageServerProtocol.ClientName and MessageServerProtocol.ClientType
with values of properties LogConfiguration.ApplicationHost,
LogConfiguration.ApplicationId, LogConfiguration.ApplicationName and
LogConfiguration.ApplicationType of current logger configuration
Logger.CurrentConfiguration. |
public DefaultLoggerPolicy()
public DefaultLoggerPolicy(LogLevel level, LogCategory category, int entryId, boolean overwriteNetworkProtocolProps)
level
- the level of message to be returnedcategory
- the category of message to be returnedentryId
- the id for message to be returnedoverwriteNetworkProtocolProps
- Value for OverwriteNetworkProtocolProperties propertypublic int getEntryId(LogLevel level, java.lang.String message)
getEntryId
in interface LoggerPolicy
level
- the level specifiedmessage
- string messagepublic LogCategory getCategory(java.lang.String message)
getCategory
in interface LoggerPolicy
message
- The message for which the category is evaluatedpublic LogLevel getLevel(java.lang.String message)
getLevel
in interface LoggerPolicy
message
- The message for which the category is evaluatedpublic boolean overwriteNetworkProtocolProperties()
Logger
will replace such properties of
Logger.getNetworkProtocol()
as
MessageServerProtocol.ClientHost, MessageServerProtocol.ClientId,
MessageServerProtocol.ClientName and MessageServerProtocol.ClientType
with values of properties LogConfiguration.ApplicationHost,
LogConfiguration.ApplicationId, LogConfiguration.ApplicationName and
LogConfiguration.ApplicationType of current logger configuration
Logger.CurrentConfiguration.overwriteNetworkProtocolProperties
in interface LoggerPolicy
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.