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 LogChannelInterface
public 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 LogChannelInterface
public void logBasic(String s)
logBasic
in interface LogChannelInterface
public void logError(String s)
logError
in interface LogChannelInterface
public void logError(String s, Throwable e)
logError
in interface LogChannelInterface
public void logBasic(String s, Object... arguments)
logBasic
in interface LogChannelInterface
public void logDetailed(String s, Object... arguments)
logDetailed
in interface LogChannelInterface
public void logError(String s, Object... arguments)
logError
in interface LogChannelInterface
public void logDetailed(String s)
logDetailed
in interface LogChannelInterface
public void logDebug(String s)
logDebug
in interface LogChannelInterface
public void logDebug(String message, Object... arguments)
logDebug
in interface LogChannelInterface
public void logRowlevel(String s)
logRowlevel
in interface LogChannelInterface
public void logMinimal(String message, Object... arguments)
logMinimal
in interface LogChannelInterface
public void logRowlevel(String message, Object... arguments)
logRowlevel
in interface LogChannelInterface
public boolean isBasic()
isBasic
in interface LogChannelInterface
public boolean isDebug()
isDebug
in interface LogChannelInterface
public boolean isDetailed()
isDetailed
in interface LogChannelInterface
public boolean isRowLevel()
isRowLevel
in interface LogChannelInterface
public boolean isError()
isError
in interface LogChannelInterface
public LogLevel getLogLevel()
getLogLevel
in interface LogChannelInterface
public void setLogLevel(LogLevel logLevel)
setLogLevel
in interface LogChannelInterface
public String getContainerObjectId()
getContainerObjectId
in interface LogChannelInterface
public void setContainerObjectId(String containerObjectId)
setContainerObjectId
in interface LogChannelInterface
containerObjectId
- the containerObjectId to setpublic boolean isGatheringMetrics()
isGatheringMetrics
in interface LogChannelInterface
public void setGatheringMetrics(boolean gatheringMetrics)
setGatheringMetrics
in interface LogChannelInterface
gatheringMetrics
- the gatheringMetrics to setpublic boolean isForcingSeparateLogging()
isForcingSeparateLogging
in interface LogChannelInterface
public void setForcingSeparateLogging(boolean forcingSeparateLogging)
LogChannelInterface
setForcingSeparateLogging
in interface LogChannelInterface
forcingSeparateLogging
- Set to true to force separate loggingpublic void snap(MetricsInterface metric, long... value)
LogChannelInterface
snap
in interface LogChannelInterface
metric
- The metric to use (ex. connect to a database)value
- the value to storepublic void snap(MetricsInterface metric, String subject, long... value)
LogChannelInterface
snap
in interface LogChannelInterface
metric
- 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 LogChannelInterface
public void setFilter(String filter)
setFilter
in interface LogChannelInterface