org.pentaho.di.core.logging
Class LogMessage

java.lang.Object
  extended by org.pentaho.di.core.logging.LogMessage
All Implemented Interfaces:
LogMessageInterface

public class LogMessage
extends Object
implements LogMessageInterface


Constructor Summary
LogMessage(String subject, LogLevel level)
          Backward compatibility : no registry used, just log the subject as part of the message
LogMessage(String message, String logChannelId, LogLevel level)
          Recommended use :
LogMessage(String message, String logChannelId, Object[] arguments, LogLevel level)
           
 
Method Summary
 Object[] getArguments()
           
 String getCopy()
           
 LogLevel getLevel()
           
 String getLogChannelId()
           
 String getMessage()
           
 String getSubject()
           
 boolean isError()
           
 void setArguments(Object[] arguments)
           
 void setCopy(String copy)
           
 void setLevel(LogLevel level)
           
 void setLogChannelId(String logChannelId)
           
 void setMessage(String message)
           
 void setSubject(String subject)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogMessage

public LogMessage(String subject,
                  LogLevel level)
Backward compatibility : no registry used, just log the subject as part of the message

Parameters:
message -
logChannelId -

LogMessage

public LogMessage(String message,
                  String logChannelId,
                  LogLevel level)
Recommended use :

Parameters:
message -
logChannelId -
level - the log level

LogMessage

public LogMessage(String message,
                  String logChannelId,
                  Object[] arguments,
                  LogLevel level)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getLevel

public LogLevel getLevel()
Specified by:
getLevel in interface LogMessageInterface

setLevel

public void setLevel(LogLevel level)

getMessage

public String getMessage()
Specified by:
getMessage in interface LogMessageInterface
Returns:
the message

setMessage

public void setMessage(String message)
Parameters:
message - the message to set

getSubject

public String getSubject()
Specified by:
getSubject in interface LogMessageInterface
Returns:
the subject

setSubject

public void setSubject(String subject)
Parameters:
subject - the subject to set

getLogChannelId

public String getLogChannelId()
Specified by:
getLogChannelId in interface LogMessageInterface
Returns:
the logChannelId

setLogChannelId

public void setLogChannelId(String logChannelId)
Parameters:
logChannelId - the logChannelId to set

getArguments

public Object[] getArguments()
Specified by:
getArguments in interface LogMessageInterface
Returns:
the arguments

setArguments

public void setArguments(Object[] arguments)
Parameters:
arguments - the arguments to set

isError

public boolean isError()

getCopy

public String getCopy()
Specified by:
getCopy in interface LogMessageInterface

setCopy

public void setCopy(String copy)