Package org.pentaho.di.core.logging
Interface LogChannelInterface
- All Known Implementing Classes:
LogChannel
public interface LogChannelInterface
-
Method Summary
Modifier and TypeMethodDescriptiondefault LoggingObjectLifecycleInterface
getHooks()
boolean
isBasic()
boolean
isDebug()
boolean
boolean
isError()
boolean
boolean
boolean
void
void
void
void
void
logDetailed
(String message) void
logDetailed
(String message, Object... arguments) void
void
void
void
logMinimal
(String message) void
logMinimal
(String message, Object... arguments) void
logRowlevel
(String message) void
logRowlevel
(String message, Object... arguments) 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) default 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.
-
Method Details
-
getLogChannelId
String getLogChannelId()- Returns:
- the id of the logging channel
-
getLogLevel
LogLevel getLogLevel() -
setLogLevel
-
getContainerObjectId
String getContainerObjectId()- Returns:
- the containerObjectId
-
setContainerObjectId
- Parameters:
containerObjectId
- the containerObjectId to set
-
getFilter
String getFilter() -
setFilter
-
isBasic
boolean isBasic() -
isDetailed
boolean isDetailed() -
isDebug
boolean isDebug() -
isRowLevel
boolean isRowLevel() -
isError
boolean isError() -
logMinimal
-
logMinimal
-
logBasic
-
logBasic
-
logDetailed
-
logDetailed
-
logDebug
-
logDebug
-
logRowlevel
-
logRowlevel
-
logError
-
logError
-
logError
-
isGatheringMetrics
boolean isGatheringMetrics() -
setGatheringMetrics
void setGatheringMetrics(boolean gatheringMetrics) -
setForcingSeparateLogging
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.- Parameters:
forcingSeparateLogging
- Set to true to force separate logging
-
isForcingSeparateLogging
boolean isForcingSeparateLogging()- Returns:
- True if the logging is forcibly separated out from even identical objects.
-
snap
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.- Parameters:
metric
- The metric to use (ex. connect to a database)value
- the value to store
-
snap
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.- 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
-
setHooks
-
getHooks
-