Package org.pentaho.di.core.logging
Class LogChannel
java.lang.Object
org.pentaho.di.core.logging.LogChannel
- All Implemented Interfaces:
LogChannelInterface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LogChannelInterface
static final String
static final String
static final LogChannelInterface
static final String
static final LogChannelInterface
-
Constructor Summary
ConstructorDescriptionLogChannel
(Object subject) LogChannel
(Object subject, boolean gatheringMetrics) LogChannel
(Object subject, boolean gatheringMetrics, boolean isPurgeable) LogChannel
(Object subject, LoggingObjectInterface parentObject) LogChannel
(Object subject, LoggingObjectInterface parentObject, boolean gatheringMetrics) -
Method Summary
Modifier and TypeMethodDescriptiongetHooks()
boolean
isBasic()
boolean
isDebug()
boolean
boolean
isError()
boolean
boolean
boolean
void
void
void
void
void
void
logDetailed
(String s, Object... arguments) void
void
void
void
logMinimal
(String s) void
logMinimal
(String message, Object... arguments) void
void
logRowlevel
(String message, Object... arguments) void
println
(LogMessageInterface message, Throwable e, LogLevel channelLogLevel) void
println
(LogMessageInterface logMessage, LogLevel channelLogLevel) void
setContainerObjectId
(String containerObjectId) void
void
setForcingSeparateLogging
(boolean forcingSeparateLogging) This option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.void
setGatheringMetrics
(boolean gatheringMetrics) void
setHooks
(LoggingObjectLifecycleInterface loggingObjectLifecycleInterface) void
setLogLevel
(LogLevel logLevel) void
snap
(MetricsInterface metric, long... value) Add a snapshot to the metrics system for this log channel at the time of invocation.void
snap
(MetricsInterface metric, String subject, long... value) Add a maximum snapshot to the metrics system for this log channel at the time of invocation.toString()
-
Field Details
-
GENERAL_SUBJECT
- See Also:
-
METADATA_SUBJECT
- See Also:
-
GUI_SUBJECT
- See Also:
-
GENERAL
-
METADATA
-
UI
-
-
Constructor Details
-
LogChannel
public LogChannel() -
LogChannel
-
LogChannel
-
LogChannel
-
LogChannel
-
LogChannel
-
-
Method Details
-
toString
-
getLogChannelId
- Specified by:
getLogChannelId
in interfaceLogChannelInterface
- Returns:
- the id of the logging channel
-
println
-
println
-
logMinimal
- Specified by:
logMinimal
in interfaceLogChannelInterface
-
logBasic
- Specified by:
logBasic
in interfaceLogChannelInterface
-
logError
- Specified by:
logError
in interfaceLogChannelInterface
-
logError
- Specified by:
logError
in interfaceLogChannelInterface
-
logBasic
- Specified by:
logBasic
in interfaceLogChannelInterface
-
logDetailed
- Specified by:
logDetailed
in interfaceLogChannelInterface
-
logError
- Specified by:
logError
in interfaceLogChannelInterface
-
logDetailed
- Specified by:
logDetailed
in interfaceLogChannelInterface
-
logDebug
- Specified by:
logDebug
in interfaceLogChannelInterface
-
logDebug
- Specified by:
logDebug
in interfaceLogChannelInterface
-
logRowlevel
- Specified by:
logRowlevel
in interfaceLogChannelInterface
-
logMinimal
- Specified by:
logMinimal
in interfaceLogChannelInterface
-
logRowlevel
- Specified by:
logRowlevel
in interfaceLogChannelInterface
-
isBasic
public boolean isBasic()- Specified by:
isBasic
in interfaceLogChannelInterface
-
isDebug
public boolean isDebug()- Specified by:
isDebug
in interfaceLogChannelInterface
-
isDetailed
public boolean isDetailed()- Specified by:
isDetailed
in interfaceLogChannelInterface
-
isRowLevel
public boolean isRowLevel()- Specified by:
isRowLevel
in interfaceLogChannelInterface
-
isError
public boolean isError()- Specified by:
isError
in interfaceLogChannelInterface
-
getLogLevel
- Specified by:
getLogLevel
in interfaceLogChannelInterface
-
setLogLevel
- Specified by:
setLogLevel
in interfaceLogChannelInterface
-
getContainerObjectId
- Specified by:
getContainerObjectId
in interfaceLogChannelInterface
- Returns:
- the containerObjectId
-
setContainerObjectId
- Specified by:
setContainerObjectId
in interfaceLogChannelInterface
- Parameters:
containerObjectId
- the containerObjectId to set
-
isGatheringMetrics
public boolean isGatheringMetrics()- Specified by:
isGatheringMetrics
in interfaceLogChannelInterface
- Returns:
- the gatheringMetrics
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics) - Specified by:
setGatheringMetrics
in interfaceLogChannelInterface
- Parameters:
gatheringMetrics
- the gatheringMetrics to set
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()- Specified by:
isForcingSeparateLogging
in interfaceLogChannelInterface
- Returns:
- True if the logging is forcibly separated out from even identical objects.
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging) Description copied from interface:LogChannelInterface
This option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.- Specified by:
setForcingSeparateLogging
in interfaceLogChannelInterface
- Parameters:
forcingSeparateLogging
- Set to true to force separate logging
-
snap
Description copied from interface:LogChannelInterface
Add a snapshot to the metrics system for this log channel at the time of invocation. This will process the value depending on the type of metric specified. For example, for MetricsInterface.look up the maximum value in the metrics and replace it if the new value is higher. The snapshot date will be retained in that case.- Specified by:
snap
in interfaceLogChannelInterface
- Parameters:
metric
- The metric to use (ex. connect to a database)value
- the value to store
-
snap
Description copied from interface:LogChannelInterface
Add a maximum snapshot to the metrics system for this log channel at the time of invocation. This will look up the maximum value in the metrics and replace it if the new value is higher. The snapshot date will be retained in that case.- Specified by:
snap
in interfaceLogChannelInterface
- Parameters:
metric
- The metric to use (ex. connect to a database)subject
- The subject (ex. the name of the database)value
- the value to store
-
getFilter
- Specified by:
getFilter
in interfaceLogChannelInterface
-
setFilter
- Specified by:
setFilter
in interfaceLogChannelInterface
-
getHooks
- Specified by:
getHooks
in interfaceLogChannelInterface
-
setHooks
- Specified by:
setHooks
in interfaceLogChannelInterface
-