Package org.pentaho.di.core.logging
Interface LogChannelInterface
-
- All Known Implementing Classes:
LogChannel
public interface LogChannelInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getContainerObjectId()
String
getFilter()
default LoggingObjectLifecycleInterface
getHooks()
String
getLogChannelId()
LogLevel
getLogLevel()
boolean
isBasic()
boolean
isDebug()
boolean
isDetailed()
boolean
isError()
boolean
isForcingSeparateLogging()
boolean
isGatheringMetrics()
boolean
isRowLevel()
void
logBasic(String message)
void
logBasic(String message, Object... arguments)
void
logDebug(String message)
void
logDebug(String message, Object... arguments)
void
logDetailed(String message)
void
logDetailed(String message, Object... arguments)
void
logError(String message)
void
logError(String message, Object... arguments)
void
logError(String message, Throwable e)
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
setFilter(String filter)
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 Detail
-
getLogChannelId
String getLogChannelId()
- Returns:
- the id of the logging channel
-
getLogLevel
LogLevel getLogLevel()
-
setLogLevel
void setLogLevel(LogLevel logLevel)
-
getContainerObjectId
String getContainerObjectId()
- Returns:
- the containerObjectId
-
setContainerObjectId
void setContainerObjectId(String containerObjectId)
- Parameters:
containerObjectId
- the containerObjectId to set
-
getFilter
String getFilter()
-
setFilter
void setFilter(String filter)
-
isBasic
boolean isBasic()
-
isDetailed
boolean isDetailed()
-
isDebug
boolean isDebug()
-
isRowLevel
boolean isRowLevel()
-
isError
boolean isError()
-
logMinimal
void logMinimal(String message)
-
logBasic
void logBasic(String message)
-
logDetailed
void logDetailed(String message)
-
logDebug
void logDebug(String message)
-
logRowlevel
void logRowlevel(String message)
-
logError
void logError(String message)
-
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
void snap(MetricsInterface metric, long... value)
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
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. 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
default void setHooks(LoggingObjectLifecycleInterface loggingObjectLifecycleInterface)
-
getHooks
default LoggingObjectLifecycleInterface getHooks()
-
-