|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.Channel
A utility class for writing log messages to channels. Common usage of this class is as follows:
Channel myChannel = Channel.getChannel("MY CHANNEL"); myChannel.info(this, "Hello there"); |
Basically, rather than using the infoToChannel(...) method and others on Syslog, you can simply get a handle to a channel and call methods on it.
Field Summary | |
static Channel |
ALL
A static utility field, which is the "all" channel. |
static Channel |
DEFAULT
A static utility field, which is the "default" channel. |
Method Summary | |
void |
debug(java.lang.Object logger,
java.lang.Object message)
Log a debug message. |
void |
debug(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Log a debug message. |
void |
error(java.lang.Object logger,
java.lang.Object message)
Log an error message. |
void |
error(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Log an error message. |
void |
fatal(java.lang.Object logger,
java.lang.Object message)
Log a fatal message. |
void |
fatal(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Log a fatal message. |
static Channel |
getAllChannel()
Get a Channel object for the "all" channel. |
static Channel |
getChannel(java.lang.String channelName)
Get a Channel object for the given channel name. |
static Channel |
getDefaultChannel()
Get a Channel object for the default channel. |
void |
info(java.lang.Object logger,
java.lang.Object message)
Log an info message. |
void |
info(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Log an info message. |
void |
log(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail,
int level)
Log a message. |
void |
log(java.lang.Object logger,
java.lang.Throwable exception)
Log a message about the given exception. |
void |
warning(java.lang.Object logger,
java.lang.Object message)
Log a warning message. |
void |
warning(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Log a warning message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Channel ALL
public static final Channel DEFAULT
Method Detail |
public static Channel getChannel(java.lang.String channelName)
public static Channel getAllChannel()
public static Channel getDefaultChannel()
public void debug(java.lang.Object logger, java.lang.Object message)
public void debug(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
public void info(java.lang.Object logger, java.lang.Object message)
public void info(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
public void warning(java.lang.Object logger, java.lang.Object message)
public void warning(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
public void error(java.lang.Object logger, java.lang.Object message)
public void error(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
public void fatal(java.lang.Object logger, java.lang.Object message)
public void fatal(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
public void log(java.lang.Object logger, java.lang.Throwable exception)
public void log(java.lang.Object logger, java.lang.Object message, java.lang.Object detail, int level)
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |