Package org.pentaho.di.core.logging
Class LogChannel
java.lang.Object
org.pentaho.di.core.logging.LogChannel
- All Implemented Interfaces:
LogChannelInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LogChannelInterfacestatic final Stringstatic final Stringstatic final LogChannelInterfacestatic final Stringstatic final LogChannelInterface -
Constructor Summary
ConstructorsConstructorDescriptionLogChannel(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()booleanisBasic()booleanisDebug()booleanbooleanisError()booleanbooleanbooleanvoidvoidvoidvoidvoidvoidlogDetailed(String s, Object... arguments) voidvoidvoidvoidlogMinimal(String s) voidlogMinimal(String message, Object... arguments) voidvoidlogRowlevel(String message, Object... arguments) voidprintln(LogMessageInterface message, Throwable e, LogLevel channelLogLevel) voidprintln(LogMessageInterface logMessage, LogLevel channelLogLevel) voidsetContainerObjectId(String containerObjectId) voidvoidsetForcingSeparateLogging(boolean forcingSeparateLogging) This option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.voidsetGatheringMetrics(boolean gatheringMetrics) voidsetHooks(LoggingObjectLifecycleInterface loggingObjectLifecycleInterface) voidsetLogLevel(LogLevel logLevel) voidsnap(MetricsInterface metric, long... value) Add a snapshot to the metrics system for this log channel at the time of invocation.voidsnap(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:
getLogChannelIdin interfaceLogChannelInterface- Returns:
- the id of the logging channel
-
println
-
println
-
logMinimal
- Specified by:
logMinimalin interfaceLogChannelInterface
-
logBasic
- Specified by:
logBasicin interfaceLogChannelInterface
-
logError
- Specified by:
logErrorin interfaceLogChannelInterface
-
logError
- Specified by:
logErrorin interfaceLogChannelInterface
-
logBasic
- Specified by:
logBasicin interfaceLogChannelInterface
-
logDetailed
- Specified by:
logDetailedin interfaceLogChannelInterface
-
logError
- Specified by:
logErrorin interfaceLogChannelInterface
-
logDetailed
- Specified by:
logDetailedin interfaceLogChannelInterface
-
logDebug
- Specified by:
logDebugin interfaceLogChannelInterface
-
logDebug
- Specified by:
logDebugin interfaceLogChannelInterface
-
logRowlevel
- Specified by:
logRowlevelin interfaceLogChannelInterface
-
logMinimal
- Specified by:
logMinimalin interfaceLogChannelInterface
-
logRowlevel
- Specified by:
logRowlevelin interfaceLogChannelInterface
-
isBasic
public boolean isBasic()- Specified by:
isBasicin interfaceLogChannelInterface
-
isDebug
public boolean isDebug()- Specified by:
isDebugin interfaceLogChannelInterface
-
isDetailed
public boolean isDetailed()- Specified by:
isDetailedin interfaceLogChannelInterface
-
isRowLevel
public boolean isRowLevel()- Specified by:
isRowLevelin interfaceLogChannelInterface
-
isError
public boolean isError()- Specified by:
isErrorin interfaceLogChannelInterface
-
getLogLevel
- Specified by:
getLogLevelin interfaceLogChannelInterface
-
setLogLevel
- Specified by:
setLogLevelin interfaceLogChannelInterface
-
getContainerObjectId
- Specified by:
getContainerObjectIdin interfaceLogChannelInterface- Returns:
- the containerObjectId
-
setContainerObjectId
- Specified by:
setContainerObjectIdin interfaceLogChannelInterface- Parameters:
containerObjectId- the containerObjectId to set
-
isGatheringMetrics
public boolean isGatheringMetrics()- Specified by:
isGatheringMetricsin interfaceLogChannelInterface- Returns:
- the gatheringMetrics
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics) - Specified by:
setGatheringMetricsin interfaceLogChannelInterface- Parameters:
gatheringMetrics- the gatheringMetrics to set
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()- Specified by:
isForcingSeparateLoggingin interfaceLogChannelInterface- Returns:
- True if the logging is forcibly separated out from even identical objects.
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging) Description copied from interface:LogChannelInterfaceThis option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.- Specified by:
setForcingSeparateLoggingin interfaceLogChannelInterface- Parameters:
forcingSeparateLogging- Set to true to force separate logging
-
snap
Description copied from interface:LogChannelInterfaceAdd 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:
snapin interfaceLogChannelInterface- Parameters:
metric- The metric to use (ex. connect to a database)value- the value to store
-
snap
Description copied from interface:LogChannelInterfaceAdd 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:
snapin 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:
getFilterin interfaceLogChannelInterface
-
setFilter
- Specified by:
setFilterin interfaceLogChannelInterface
-
getHooks
- Specified by:
getHooksin interfaceLogChannelInterface
-
setHooks
- Specified by:
setHooksin interfaceLogChannelInterface
-