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()
String
getCopy()
LogLevel
getLevel()
String
getLogChannelId()
String
getMessage()
String
getSubject()
boolean
isError()
void
setArguments(Object[] arguments)
Deprecated.void
setCopy(String copy)
void
setLevel(LogLevel level)
Deprecated.void
setLogChannelId(String logChannelId)
Deprecated.void
setMessage(String message)
Deprecated.void
setSubject(String subject)
Deprecated.String
toString()
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:
getLevel
in interfaceLogMessageInterface
-
setLevel
@Deprecated public void setLevel(LogLevel level)
Deprecated.
-
getMessage
public String getMessage()
- Specified by:
getMessage
in 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:
getSubject
in interfaceLogMessageInterface
- Returns:
- the subject
-
setSubject
@Deprecated public void setSubject(String subject)
Deprecated.- Parameters:
subject
- the subject to set
-
getLogChannelId
public String getLogChannelId()
- Specified by:
getLogChannelId
in interfaceLogMessageInterface
- Returns:
- the logChannelId
-
setLogChannelId
@Deprecated public void setLogChannelId(String logChannelId)
Deprecated.- Parameters:
logChannelId
- the logChannelId to set
-
getArguments
public Object[] getArguments()
- Specified by:
getArguments
in 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:
getCopy
in interfaceLogMessageInterface
-
setCopy
public void setCopy(String copy)
-
-