org.pentaho.di.core.logging
Class LogMessage
java.lang.Object
org.pentaho.di.core.logging.LogMessage
- All Implemented Interfaces:
- LogMessageInterface
public class LogMessage
- extends Object
- implements LogMessageInterface
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)
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)