public class LogChannel extends Object implements LogChannelInterface
| Modifier and Type | Field and Description |
|---|---|
static LogChannelInterface |
GENERAL |
static LogChannelInterface |
METADATA |
static LogChannelInterface |
UI |
| Constructor and Description |
|---|
LogChannel(Object subject) |
LogChannel(Object subject,
boolean gatheringMetrics) |
LogChannel(Object subject,
LoggingObjectInterface parentObject) |
LogChannel(Object subject,
LoggingObjectInterface parentObject,
boolean gatheringMetrics) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContainerObjectId() |
String |
getFilter() |
String |
getLogChannelId() |
LogLevel |
getLogLevel() |
boolean |
isBasic() |
boolean |
isDebug() |
boolean |
isDetailed() |
boolean |
isError() |
boolean |
isForcingSeparateLogging() |
boolean |
isGatheringMetrics() |
boolean |
isRowLevel() |
void |
logBasic(String s) |
void |
logBasic(String s,
Object... arguments) |
void |
logDebug(String s) |
void |
logDebug(String message,
Object... arguments) |
void |
logDetailed(String s) |
void |
logDetailed(String s,
Object... arguments) |
void |
logError(String s) |
void |
logError(String s,
Object... arguments) |
void |
logError(String s,
Throwable e) |
void |
logMinimal(String s) |
void |
logMinimal(String message,
Object... arguments) |
void |
logRowlevel(String s) |
void |
logRowlevel(String message,
Object... arguments) |
void |
println(LogMessageInterface logMessage,
LogLevel channelLogLevel) |
void |
println(LogMessageInterface message,
Throwable e,
LogLevel channelLogLevel) |
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) |
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.
|
String |
toString() |
public static LogChannelInterface GENERAL
public static LogChannelInterface METADATA
public static LogChannelInterface UI
public LogChannel(Object subject)
public LogChannel(Object subject, boolean gatheringMetrics)
public LogChannel(Object subject, LoggingObjectInterface parentObject)
public LogChannel(Object subject, LoggingObjectInterface parentObject, boolean gatheringMetrics)
public String getLogChannelId()
getLogChannelId in interface LogChannelInterfacepublic void println(LogMessageInterface logMessage, LogLevel channelLogLevel)
logMessage - channelLogLevel - public void println(LogMessageInterface message, Throwable e, LogLevel channelLogLevel)
public void logMinimal(String s)
logMinimal in interface LogChannelInterfacepublic void logBasic(String s)
logBasic in interface LogChannelInterfacepublic void logError(String s)
logError in interface LogChannelInterfacepublic void logError(String s, Throwable e)
logError in interface LogChannelInterfacepublic void logBasic(String s, Object... arguments)
logBasic in interface LogChannelInterfacepublic void logDetailed(String s, Object... arguments)
logDetailed in interface LogChannelInterfacepublic void logError(String s, Object... arguments)
logError in interface LogChannelInterfacepublic void logDetailed(String s)
logDetailed in interface LogChannelInterfacepublic void logDebug(String s)
logDebug in interface LogChannelInterfacepublic void logDebug(String message, Object... arguments)
logDebug in interface LogChannelInterfacepublic void logRowlevel(String s)
logRowlevel in interface LogChannelInterfacepublic void logMinimal(String message, Object... arguments)
logMinimal in interface LogChannelInterfacepublic void logRowlevel(String message, Object... arguments)
logRowlevel in interface LogChannelInterfacepublic boolean isBasic()
isBasic in interface LogChannelInterfacepublic boolean isDebug()
isDebug in interface LogChannelInterfacepublic boolean isDetailed()
isDetailed in interface LogChannelInterfacepublic boolean isRowLevel()
isRowLevel in interface LogChannelInterfacepublic boolean isError()
isError in interface LogChannelInterfacepublic LogLevel getLogLevel()
getLogLevel in interface LogChannelInterfacepublic void setLogLevel(LogLevel logLevel)
setLogLevel in interface LogChannelInterfacepublic String getContainerObjectId()
getContainerObjectId in interface LogChannelInterfacepublic void setContainerObjectId(String containerObjectId)
setContainerObjectId in interface LogChannelInterfacecontainerObjectId - the containerObjectId to setpublic boolean isGatheringMetrics()
isGatheringMetrics in interface LogChannelInterfacepublic void setGatheringMetrics(boolean gatheringMetrics)
setGatheringMetrics in interface LogChannelInterfacegatheringMetrics - the gatheringMetrics to setpublic boolean isForcingSeparateLogging()
isForcingSeparateLogging in interface LogChannelInterfacepublic void setForcingSeparateLogging(boolean forcingSeparateLogging)
LogChannelInterfacesetForcingSeparateLogging in interface LogChannelInterfaceforcingSeparateLogging - Set to true to force separate loggingpublic void snap(MetricsInterface metric, long... value)
LogChannelInterfacesnap in interface LogChannelInterfacemetric - The metric to use (ex. connect to a database)value - the value to storepublic void snap(MetricsInterface metric, String subject, long... value)
LogChannelInterfacesnap in interface LogChannelInterfacemetric - The metric to use (ex. connect to a database)subject - The subject (ex. the name of the database)value - the value to storepublic String getFilter()
getFilter in interface LogChannelInterfacepublic void setFilter(String filter)
setFilter in interface LogChannelInterface