Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging
Class LogEntry

java.lang.Object
  extended by com.genesyslab.platform.logging.LogEntry

public final class LogEntry
extends java.lang.Object

The class which describes the log entry.


Constructor Summary
LogEntry(int logMsgId, java.lang.Object[] arguments)
          Constructor.
LogEntry(int logMsgId, java.lang.String logMessage, java.util.Date dateTime, LogLevel logLevel, LogCategory logCategory, AttributeList attributes, java.lang.Object[] arguments)
          Constructor.
LogEntry(int logMsgId, java.lang.String logMessage, java.util.Date dateTime, LogLevel logLevel, LogCategory logCategory, java.lang.Object[] arguments)
          Constructor.
LogEntry(LogEntry entry)
          Copy constructor.
LogEntry(java.lang.String logMessage)
          Constructor.
 
Method Summary
 java.lang.Object[] getArgs()
           
 AttributeList getAttributes()
          Gets RequestLogMessage.Attributes parameter (see RequestLogMessage for details).
 LogCategory getCategory()
           
 int getId()
           
 LogLevel getLevel()
           
 java.lang.String getMessage()
           
 java.lang.String getSourceName()
          Gets the name of the logger which creates this entry.
 java.util.Date getTime()
           
 void setAttributes(AttributeList attributeList)
           
 void setCategory(LogCategory logCategory)
           
 void setId(int logMsgId)
           
 void setLevel(LogLevel logLevel)
           
 void setMessage(java.lang.String logMessage)
           
 void setSourceName(java.lang.String sourceName)
           
 void setTime(java.util.Date timeStamp)
           
 java.lang.String toString()
           
 java.lang.String toStringExtended()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry(int logMsgId,
                java.lang.String logMessage,
                java.util.Date dateTime,
                LogLevel logLevel,
                LogCategory logCategory,
                java.lang.Object[] arguments)
Constructor.

Parameters:
logMsgId - id of message
logMessage - log message string
dateTime - timestamp of the message
logLevel - log level of the message (see LogLevel for details)
logCategory - category of message (see LogCategory for details)
arguments - the additional info

LogEntry

public LogEntry(java.lang.String logMessage)
Constructor.

Parameters:
logMessage - log message string

LogEntry

public LogEntry(int logMsgId,
                java.lang.Object[] arguments)
Constructor.

Parameters:
logMsgId - id of message
arguments - the additional info

LogEntry

public LogEntry(int logMsgId,
                java.lang.String logMessage,
                java.util.Date dateTime,
                LogLevel logLevel,
                LogCategory logCategory,
                AttributeList attributes,
                java.lang.Object[] arguments)
Constructor.

Parameters:
logMsgId - id of message
logMessage - log message string
dateTime - timestamp of the message
logLevel - log level of the message (see LogLevel for details)
logCategory - category of message (see LogCategory for details)
attributes - attributes (used by Message Server only) see RequestLogMessage for details.
arguments - the additional info

LogEntry

public LogEntry(LogEntry entry)
Copy constructor.

Parameters:
entry -
Method Detail

getCategory

public LogCategory getCategory()

setCategory

public void setCategory(LogCategory logCategory)

getId

public int getId()

setId

public void setId(int logMsgId)

getLevel

public LogLevel getLevel()

setLevel

public void setLevel(LogLevel logLevel)

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String logMessage)

getTime

public java.util.Date getTime()

setTime

public void setTime(java.util.Date timeStamp)

getArgs

public java.lang.Object[] getArgs()

getSourceName

public java.lang.String getSourceName()
Gets the name of the logger which creates this entry.


setSourceName

public void setSourceName(java.lang.String sourceName)

getAttributes

public AttributeList getAttributes()
Gets RequestLogMessage.Attributes parameter (see RequestLogMessage for details).


setAttributes

public void setAttributes(AttributeList attributeList)

toString

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

toStringExtended

public java.lang.String toStringExtended()

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.