|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.logging.DefaultLoggerPolicy
public final class DefaultLoggerPolicy
Constructor Summary | |
---|---|
DefaultLoggerPolicy()
Default constructor. |
|
DefaultLoggerPolicy(LogLevel level,
LogCategory category,
int entryId,
boolean overwriteNetworkProtocolProps)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 propertyMethod Detail |
---|
public int getEntryId(LogLevel level, java.lang.String message)
getEntryId
in interface LoggerPolicy
level
- the level specifiedmessage
- string message
public LogCategory getCategory(java.lang.String message)
getCategory
in interface LoggerPolicy
message
- The message for which the category is evaluated
public LogLevel getLevel(java.lang.String message)
getLevel
in interface LoggerPolicy
message
- The message for which the category is evaluated
public 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
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |