Package 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
-
-
Constructor Summary
Constructors Constructor Description LogMessage(String message, String logChannelId, Object[] arguments, LogLevel level)LogMessage(String message, String logChannelId, LogLevel level)Recommended use :LogMessage(String subject, LogLevel level)Backward compatibility : no registry used, just log the subject as part of the message
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object[]getArguments()StringgetCopy()LogLevelgetLevel()StringgetLogChannelId()StringgetMessage()StringgetSubject()booleanisError()voidsetArguments(Object[] arguments)Deprecated.voidsetCopy(String copy)voidsetLevel(LogLevel level)Deprecated.voidsetLogChannelId(String logChannelId)Deprecated.voidsetMessage(String message)Deprecated.voidsetSubject(String subject)Deprecated.StringtoString()Deprecated.
-
-
-
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
-
-
Method Detail
-
toString
@Deprecated public String toString()
Deprecated.
-
getLevel
public LogLevel getLevel()
- Specified by:
getLevelin interfaceLogMessageInterface
-
setLevel
@Deprecated public void setLevel(LogLevel level)
Deprecated.
-
getMessage
public String getMessage()
- Specified by:
getMessagein interfaceLogMessageInterface- Returns:
- The formatted message.
-
setMessage
@Deprecated public void setMessage(String message)
Deprecated.- Parameters:
message- the message to set
-
getSubject
public String getSubject()
- Specified by:
getSubjectin interfaceLogMessageInterface- Returns:
- the subject
-
setSubject
@Deprecated public void setSubject(String subject)
Deprecated.- Parameters:
subject- the subject to set
-
getLogChannelId
public String getLogChannelId()
- Specified by:
getLogChannelIdin interfaceLogMessageInterface- Returns:
- the logChannelId
-
setLogChannelId
@Deprecated public void setLogChannelId(String logChannelId)
Deprecated.- Parameters:
logChannelId- the logChannelId to set
-
getArguments
public Object[] getArguments()
- Specified by:
getArgumentsin interfaceLogMessageInterface- Returns:
- the arguments
-
setArguments
@Deprecated public void setArguments(Object[] arguments)
Deprecated.- Parameters:
arguments- the arguments to set
-
isError
public boolean isError()
-
getCopy
public String getCopy()
- Specified by:
getCopyin interfaceLogMessageInterface
-
setCopy
public void setCopy(String copy)
-
-