Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging.configuration
Class LogConfigurationImpl

java.lang.Object
  extended by com.genesyslab.platform.logging.configuration.LogConfigurationImpl
All Implemented Interfaces:
LogConfiguration, LogConfigurationExt

public final class LogConfigurationImpl
extends java.lang.Object
implements LogConfigurationExt


Field Summary
protected  TargetsConfigurationImpl targets
           
 
Constructor Summary
LogConfigurationImpl()
          Creates the default configuration.
 
Method Summary
 java.lang.String getApplicationHost()
          The host of application to be used in the logs.
 int getApplicationId()
          The Id of application to be used in the logs.
 java.lang.String getApplicationName()
          The name of application to be used in the logs.
 int getApplicationType()
          The type of application to be used in the logs.
 java.util.Map<java.lang.Integer,LogLevel> getLevelsReassignmentMap()
          Specifies a log level for log event <eventID> that is different than its default level, or disables log event <eventID> completely.
 java.lang.String getMessageFile()
          Gets the name of application-specific lms file.
 TargetsConfiguration getTargets()
          Gets the configuration of output targets.
 TimeUsage getTimeUsage()
          Gets the time converting to be used in the logs.
 VerboseLevel getVerbose()
          Gets the verbose level of the logger.
 java.lang.Boolean isLevelsReassignmentDisabled()
          When this option is set to true, the original (default) log level of all log events in the [log-extended] section are restored.
This option is useful when you want to use the default levels, but not delete the customization statements.
 void setApplicationHost(java.lang.String applicationHost)
           
 void setApplicationId(int applicationId)
           
 void setApplicationName(java.lang.String applicationName)
           
 void setApplicationType(int applicationType)
           
 void setLevelsReassignmentDisabled(java.lang.Boolean reassignmentDisabled)
           
 void setLevelsReassignmentMap(java.util.Map<java.lang.Integer,LogLevel> reassignmentMap)
           
 void setMessageFile(java.lang.String messageFile)
           
 void setTimeUsage(TimeUsage timeUsage)
           
 void setVerbose(VerboseLevel verbose)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targets

protected TargetsConfigurationImpl targets
Constructor Detail

LogConfigurationImpl

public LogConfigurationImpl()
Creates the default configuration.

Method Detail

getTargets

public TargetsConfiguration getTargets()
Gets the configuration of output targets.

Specified by:
getTargets in interface LogConfiguration

getApplicationName

public java.lang.String getApplicationName()
Description copied from interface: LogConfiguration
The name of application to be used in the logs.

Specified by:
getApplicationName in interface LogConfiguration

setApplicationName

public void setApplicationName(java.lang.String applicationName)

getApplicationHost

public java.lang.String getApplicationHost()
Description copied from interface: LogConfiguration
The host of application to be used in the logs.

Specified by:
getApplicationHost in interface LogConfiguration

setApplicationHost

public void setApplicationHost(java.lang.String applicationHost)

getApplicationType

public int getApplicationType()
Description copied from interface: LogConfiguration
The type of application to be used in the logs.

Specified by:
getApplicationType in interface LogConfiguration

setApplicationType

public void setApplicationType(int applicationType)

getApplicationId

public int getApplicationId()
Description copied from interface: LogConfiguration
The Id of application to be used in the logs.

Specified by:
getApplicationId in interface LogConfiguration

setApplicationId

public void setApplicationId(int applicationId)

getTimeUsage

public TimeUsage getTimeUsage()
Description copied from interface: LogConfiguration
Gets the time converting to be used in the logs. See Configuration.TimeUsage for more info.

Specified by:
getTimeUsage in interface LogConfiguration

setTimeUsage

public void setTimeUsage(TimeUsage timeUsage)

getVerbose

public VerboseLevel getVerbose()
Description copied from interface: LogConfiguration
Gets the verbose level of the logger. See VerboseLevel for more info.

Specified by:
getVerbose in interface LogConfiguration

setVerbose

public void setVerbose(VerboseLevel verbose)

getMessageFile

public java.lang.String getMessageFile()
Description copied from interface: LogConfiguration
Gets the name of application-specific lms file. If null - the pattern 'ApplicationName'.lms will be used.

Specified by:
getMessageFile in interface LogConfiguration

setMessageFile

public void setMessageFile(java.lang.String messageFile)

isLevelsReassignmentDisabled

public java.lang.Boolean isLevelsReassignmentDisabled()
Description copied from interface: LogConfigurationExt
When this option is set to true, the original (default) log level of all log events in the [log-extended] section are restored.
This option is useful when you want to use the default levels, but not delete the customization statements.

Specified by:
isLevelsReassignmentDisabled in interface LogConfigurationExt
See Also:
LogConfigurationExt.getLevelsReassignmentMap()

setLevelsReassignmentDisabled

public void setLevelsReassignmentDisabled(java.lang.Boolean reassignmentDisabled)

getLevelsReassignmentMap

public java.util.Map<java.lang.Integer,LogLevel> getLevelsReassignmentMap()
Description copied from interface: LogConfigurationExt
Specifies a log level for log event <eventID> that is different than its default level, or disables log event <eventID> completely. If no value is specified, the log event retains its default level. This option is useful when you want to customize the log level for selected log events.
These options can be deactivated with option "level-reassign-disable" option (LogConfigurationExt.isLevelsReassignmentDisabled()).

Specified by:
getLevelsReassignmentMap in interface LogConfigurationExt
See Also:
LogConfigurationExt.isLevelsReassignmentDisabled()

setLevelsReassignmentMap

public void setLevelsReassignmentMap(java.util.Map<java.lang.Integer,LogLevel> reassignmentMap)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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.