|
|
|||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.Syslog
This class implements a system-wide logging utility. Please read the Syslog Whitepaper for more information. It allows a program to log messages and objects at different severity levels in a standardized way. The implementation of the log is specified by an object which implements the Syslogger interface. You can have multiple log implementations, and each can have it's own log mask or can inherit it's log mask from Syslog (this is the default behavior).
There are 5 severity levels: DEBUG, INFO, WARNING, ERROR, FATAL. They correspond to the numbers 0, 4, 8, 12, and 16, respectively. You can enable logging for any combination of these levels. The default setting logs only WARNING and above.
System.out.println("Some message");
Do this instead:
Syslog.debug(this, "Some message");
If you're in a static method, do this:
Syslog.debug(MyClass.class, "Some message");
If you like what this gets you, start playing around with different log levels (call "Syslog.info(...) " and others). If you like that, start playing around with channels and configuring the loggers and other things. Syslog has a very robust API and can be bent around to do all sorts of things, but it does not have to be complicated to use even though it can be configured in all sorts of complicated ways.
// log simple message at DEBUG level // pass 'this' as the object performing the logging Syslog.log(this, "simple message", null, Syslog.DEBUG);// this performs toString() on object 'obj', and prints a message Syslog.log(this, "logging object", obj, Syslog.INFO);
// logs 'exception' and its stack trace at ERROR level Syslog.log(this, exception);
// here's how you log in a static method -- pass the class object Syslog.log(MyClass.class, "logging in MyClass");
// shortcuts for each log level Syslog.debug(this, "foo"); Syslog.debug(this, "foo", bar); Syslog.info(this, "foo"); Syslog.info(this, "foo", bar);
// log to multiple channels (the "foo" and "bar" channels) Syslog.infoToChannel(this, new String[]{"foo", "bar"}, "My message");
There are basically three types of methods on this class for issuing log messages. Whenever a channel name is not specified, the channel DEFAULT_CHANNEL is used.
Whenever a channel is specified, it is an Object . This argument can either be a String or an array of String (in which case, the message will be sent out to multiple channels).
You may want to look at the Channel class. Some people prefet its API.
When the Syslog class is loaded, the following happens:
If you want to change these defaults, you can use the getLoggers() , addLogger(...) , removeLogger(...) and removeAllLoggers() methods to change what loggers are registered with Syslog .
Syslog provides background work queues for loggers that need to perform their operations asynchronously. For instance, the MailLog performs its policy check synchronously and then if it decides that a message will actually need to be sent, it asks syslog to perform the operation asynchronously. This is far more efficient than doing everything in the background because the amount of synchronization necessary to add work to a queue is usually larger than a policy check.
Please read the Syslog Whitepaper for more information on Syslog.
Syslogger
,
SyslogChannelAware
Field Summary | |
static java.lang.String |
ALL_CHANNEL
The symbolic name for all channels. |
static Channel |
channel
A log channel for syslog configuration and system related messages. |
static int |
currentLogMask
The current system-wide log mask. |
static int |
DEBUG
A log generated during debugging of the software. |
static com.protomatter.util.Debug |
debugging
|
static java.lang.String |
DEFAULT_CHANNEL
The name of the default log channel. |
static int |
ERROR
One of the software components caused an error or exception. |
static int |
FATAL
One of the software components is no longer functional. |
static int |
INFO
An informational message that might come in handy later. |
static int |
INHERIT_MASK
Loggers can inherit Syslog's log mask by setting their log mask to this value. |
static java.lang.String |
SYSLOG_CHANNEL_NAME
The name of a log channel for syslog configuration and system related messages. |
static int |
WARNING
A warning message that the system administrator might want to know about. |
static java.lang.String |
WARNING_PROPERTY
Syslog classloader warning system property name. |
Constructor Summary | |
protected |
Syslog()
Protected constructor. |
Method Summary | |
static void |
addLogger(Syslogger log)
Registers a new Syslogger object with Syslog. |
static void |
addWork(java.lang.String queueName,
java.lang.Runnable r)
Add work to the given background queue. |
static int |
atOrAbove(int level)
|
static boolean |
canDebug()
Deprecated. |
static boolean |
canDebug(java.lang.Object logger)
Deprecated. |
static boolean |
canError()
Deprecated. |
static boolean |
canError(java.lang.Object logger)
Deprecated. |
static boolean |
canFatal()
Deprecated. |
static boolean |
canFatal(java.lang.Object logger)
Deprecated. |
static boolean |
canInfo()
Deprecated. |
static boolean |
canInfo(java.lang.Object logger)
Deprecated. |
static boolean |
canLog(int level)
Deprecated. |
static boolean |
canLog(java.lang.Object logger,
int level)
Deprecated. |
static boolean |
canWarning()
Deprecated. |
static boolean |
canWarning(java.lang.Object logger)
Deprecated. |
static void |
crumb()
Logs a breadcrumb at the debug level. |
static void |
crumb(java.lang.Object logger)
Logs a breadcrumb at the debug level. |
static void |
crumb(java.lang.Object logger,
java.lang.Object channel)
Logs a breadcrumb at the debug level. |
static void |
debug(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message)
Logs a debug message, which will be converted through toString(). |
static void |
debug(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a debug message with a detail object, both of which will be converted through toString(). |
static void |
debug(java.lang.Object logger,
java.lang.Object message)
Logs a debug message, which will be converted through toString(). |
static void |
debug(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a debug message with a detail object, both of which will be converted through toString(). |
static void |
debugToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs a debug message to the given channel. |
static void |
debugToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs a debug message with a detail object to the given channel. |
static void |
debugToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs a debug message to the given channel. |
static void |
debugToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs a debug message with a detail object to the given channel. |
static void |
error(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message)
Logs a error message, which will be converted through toString(). |
static void |
error(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a error message with a detail object, both of which will be converted through toString(). |
static void |
error(java.lang.Object logger,
java.lang.Object message)
Logs a error message, which will be converted through toString(). |
static void |
error(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a error message with a detail object, both of which will be converted through toString(). |
static void |
errorToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs an error message to the given channel. |
static void |
errorToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs an error message with a detail object to the given channel. |
static void |
errorToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs an error message to the given channel. |
static void |
errorToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs an error message with a detail object to the given channel. |
static void |
fatal(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message)
Logs a fatal message, which will be converted through toString(). |
static void |
fatal(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a fatal message with a detail object, both of which will be converted through toString(). |
static void |
fatal(java.lang.Object logger,
java.lang.Object message)
Logs a fatal message, which will be converted through toString(). |
static void |
fatal(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a fatal message with a detail object, both of which will be converted through toString(). |
static void |
fatalToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs a fatal message to the given channel. |
static void |
fatalToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs a fatal message with a detail object to the given channel. |
static void |
fatalToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs a fatal message to the given channel. |
static void |
fatalToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs a fatal message with a detail object to the given channel. |
static void |
flush()
Flush output to all loggers. |
static boolean |
getAlwaysComputeCaller()
Get the flag for always computing calling class and method names at runtime. |
static boolean |
getComputeCaller()
Get the flag for computing calling class and method names at runtime. |
static long |
getFlushThreadInterval()
Get the sleep interval of the logger flush thread. |
static Syslog |
getInstance()
Returns the global Syslog instance. |
static java.net.InetAddress |
getLocalHostName()
Get the local hostname. |
static Syslogger |
getLogger(java.lang.String name)
Get a logger by name. |
static java.util.Iterator |
getLoggers()
Returns an Enumeration of all Syslogger objects registered with Syslog. |
static int |
getLogMask()
Get the default mask for logging of messages. |
static java.lang.String |
getLogMaskAsString()
Get a string representation of the current master log mask. |
static java.lang.String |
getLogMaskAsString(int logMask)
Get a string representation of the given log mask. |
static java.util.ResourceBundle |
getResources()
Get the resource bundle associated with Syslog. |
static java.lang.String |
getResourceString(java.lang.String name)
Get the value of the given resource name associated with Syslog. |
static java.util.Map |
getWorkQueueMap()
Get a map of the background work queues. |
static void |
info(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message)
Logs a info message, which will be converted through toString(). |
static void |
info(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a info message with a detail object, both of which will be converted through toString(). |
static void |
info(java.lang.Object logger,
java.lang.Object message)
Logs a info message, which will be converted through toString(). |
static void |
info(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a info message with a detail object, both of which will be converted through toString(). |
static void |
infoToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs an info message to the given channel. |
static void |
infoToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs an info message with a detail object to the given channel. |
static void |
infoToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs an info message to the given channel. |
static void |
infoToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs an info message with a detail object to the given channel. |
static boolean |
inMask(int level,
int mask)
Check if the given level is covered by the given mask. |
static void |
log(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object msg,
java.lang.Object detail,
int level)
Log a message. |
static void |
log(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object msg,
java.lang.Object detail,
int level)
Log a message. |
static void |
log(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object incomingChannel,
java.lang.Object msg,
java.lang.Object detail,
int level,
java.lang.Thread thread,
java.lang.String threadName,
long messageSendTime)
Log a message. |
static void |
log(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object incomingChannel,
java.lang.Object msg,
java.lang.Object detail,
int level,
java.lang.Thread thread,
java.lang.String threadName,
long messageSendTime,
int traceDepth)
Log a message. |
static void |
log(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Throwable e)
Logs an exception for the given object. |
static void |
log(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Throwable e,
int level)
Logs an exception for the given object at a given level. |
static void |
log(java.lang.Object logger,
java.lang.Object msg,
java.lang.Object detail,
int level)
Log a message. |
static void |
log(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object msg,
java.lang.Object detail,
int level)
Log a message. |
static void |
log(java.lang.Object logger,
java.lang.Throwable e)
Logs an exception for the given object. |
static void |
log(java.lang.Object logger,
java.lang.Throwable e,
int level)
Logs an exception for the given object at a given level. |
static boolean |
mightDebug(java.lang.Object logger)
Deprecated. |
static boolean |
mightDebug(java.lang.Object logger,
java.lang.Object channel)
Deprecated. |
static boolean |
mightError(java.lang.Object logger)
Deprecated. |
static boolean |
mightError(java.lang.Object logger,
java.lang.Object channel)
Deprecated. |
static boolean |
mightFatal(java.lang.Object logger)
Deprecated. |
static boolean |
mightFatal(java.lang.Object logger,
java.lang.Object channel)
Deprecated. |
static boolean |
mightInfo(java.lang.Object logger)
Deprecated. |
static boolean |
mightInfo(java.lang.Object logger,
java.lang.Object channel)
Deprecated. |
static boolean |
mightLog(java.lang.Object logger,
int level)
Deprecated. |
static boolean |
mightLog(java.lang.Object logger,
int level,
java.lang.Object channel)
Deprecated. |
static boolean |
mightWarning(java.lang.Object logger)
Deprecated. |
static boolean |
mightWarning(java.lang.Object logger,
java.lang.Object channel)
Deprecated. |
static int |
parseLogMask(java.lang.String mask)
Parse the mask. |
static void |
removeAllLoggers()
Deregisters all Syslogger objects. |
static boolean |
removeLogger(Syslogger log)
Deregisters a Syslogger object from Syslog. |
static void |
setAlwaysComputeCaller(boolean setting)
Set the flag for always computing calling class and method names at runtime. |
static void |
setComputeCaller(boolean setting)
Set the flag for computing calling class and method names at runtime. |
static void |
setFlushThreadInterval(long interval)
Set the number of milliseconds a flush thread should wait before flushing output on each logger. |
static void |
setLocalHostName()
Set the local hostname automatically. |
static void |
setLocalHostName(java.net.InetAddress host)
Set the local hostname. |
static void |
setLogMask(int mask)
Set the default mask for logging of messages. |
static void |
setLogMask(java.lang.String mask)
Set the mask. |
static void |
setMasterSwitch(boolean value)
Set the value of the master switch. |
static void |
shutdown()
Remove all the loggers and shut them down. |
static void |
warning(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message)
Logs a warning message, which will be converted through toString(). |
static void |
warning(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a warning message with a detail object, both of which will be converted through toString(). |
static void |
warning(java.lang.Object logger,
java.lang.Object message)
Logs a warning message, which will be converted through toString(). |
static void |
warning(java.lang.Object logger,
java.lang.Object message,
java.lang.Object detail)
Logs a warning message with a detail object, both of which will be converted through toString(). |
static void |
warningToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs a warning message to the given channel. |
static void |
warningToChannel(java.net.InetAddress host,
java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs a warning message with a detail object to the given channel. |
static void |
warningToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message)
Logs a warning message to the given channel. |
static void |
warningToChannel(java.lang.Object logger,
java.lang.Object channel,
java.lang.Object message,
java.lang.Object detail)
Logs a warning message with a detail object to the given channel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final com.protomatter.util.Debug debugging
public static final int DEBUG
public static final int INFO
public static final int WARNING
public static final int ERROR
public static final int FATAL
public static final int INHERIT_MASK
public static final java.lang.String DEFAULT_CHANNEL
public static final java.lang.String ALL_CHANNEL
public static int currentLogMask
public static java.lang.String SYSLOG_CHANNEL_NAME
public static Channel channel
public static final java.lang.String WARNING_PROPERTY
Constructor Detail |
protected Syslog()
Method Detail |
public static Syslog getInstance()
public static void setComputeCaller(boolean setting)
public static boolean getComputeCaller()
public static void setAlwaysComputeCaller(boolean setting)
public static boolean getAlwaysComputeCaller()
public static java.util.Map getWorkQueueMap()
com.protomatter.util.WorkQueue
object. You should never play with the queues -- this method is
provided so that external processes can monitor the size of each queue
by calling the getObjectPoolSize() method on each queue. The
map itself is read-only.public static java.net.InetAddress getLocalHostName()
public static void setFlushThreadInterval(long interval)
interval
- The new flushThreadInterval valuepublic static long getFlushThreadInterval()
public static void setLocalHostName()
public static void setLocalHostName(java.net.InetAddress host)
host
- The new localHostName valuepublic static void setMasterSwitch(boolean value)
value
- The new masterSwitch valuepublic static void addWork(java.lang.String queueName, java.lang.Runnable r)
queueName
- The feature to be added to the Work attributer
- The feature to be added to the Work attributepublic static final void addLogger(Syslogger log)
log
- The feature to be added to the Logger attributepublic static final boolean removeLogger(Syslogger log)
log
- The logger to removepublic static final void removeAllLoggers()
public static final java.util.Iterator getLoggers()
public static void shutdown()
public static final Syslogger getLogger(java.lang.String name)
name
- The name of the logger to get.public static final void setLogMask(int mask)
mask
- The new logMask valuepublic static final void setLogMask(java.lang.String mask)
mask
- The new logMask valueparseLogMask(java.lang.String)
public static final int parseLogMask(java.lang.String mask)
You can also pass in a list of levels, separated by commas and with an " = " before each level to select non-contiguous groups of levels. For instance, passing in "=INFO,=ERROR " will catch messages only at the INFO and ERROR levels, and NOTHING ELSE .
mask
- String representation of the maskpublic static java.lang.String getLogMaskAsString()
public static java.lang.String getLogMaskAsString(int logMask)
logMask
- The parsed log maskpublic static final boolean inMask(int level, int mask)
level
- Log message severitymask
- Log mask to compare it topublic static final int getLogMask()
public static final int atOrAbove(int level)
level
- The minimum severity of messagespublic static final void log(java.net.InetAddress host, java.lang.Object logger, java.lang.Object msg, java.lang.Object detail, int level)
host
- The machine the log entry originated on.logger
- The object which is perfoming the log. It's class name
will be extracted and added to the log.msg
- A short message describing the log entry.detail
- A longer message with more information (can be null).level
- The level of the log entry.public static final void log(java.lang.Object logger, java.lang.Object msg, java.lang.Object detail, int level)
logger
- The object which is perfoming the log. It's class name
will be extracted and added to the log.msg
- A short message describing the log entry.detail
- A longer message with more information (can be null).level
- The level of the log entry.public static final void log(java.lang.Object logger, java.lang.Object channel, java.lang.Object msg, java.lang.Object detail, int level)
logger
- The object which is perfoming the log. It's class name
will be extracted and added to the log.channel
- The log channel to write to.msg
- A short message describing the log entry.detail
- A longer message with more information (can be null).level
- The level of the log entry.public static final void log(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object msg, java.lang.Object detail, int level)
host
- The host the log message originated on.logger
- The object which is perfoming the log. It's class name
will be extracted and added to the log.channel
- The log channel to write to.msg
- A short message describing the log entry.detail
- A longer message with more information (can be null).level
- The level of the log entry.public static final void log(java.net.InetAddress host, java.lang.Object logger, java.lang.Object incomingChannel, java.lang.Object msg, java.lang.Object detail, int level, java.lang.Thread thread, java.lang.String threadName, long messageSendTime)
host
- The host the log message originated on.logger
- The object which is perfoming the log. It's class
name will be extracted and added to the log.msg
- A short message describing the log entry.detail
- A longer message with more information (can be
null).level
- The level of the log entry.thread
- The thread making the log call (null if remote)threadName
- The name of the thread making the log call.messageSendTime
- The time the message was sent.incomingChannel
- Message channelpublic static final void log(java.net.InetAddress host, java.lang.Object logger, java.lang.Object incomingChannel, java.lang.Object msg, java.lang.Object detail, int level, java.lang.Thread thread, java.lang.String threadName, long messageSendTime, int traceDepth)
host
- The host the log message originated on.logger
- The object which is perfoming the log. It's class
name will be extracted and added to the log.msg
- A short message describing the log entry.detail
- A longer message with more information (can be
null).level
- The level of the log entry.thread
- The thread making the log call (null if remote)threadName
- The name of the thread making the log call.messageSendTime
- The time the message was sent.incomingChannel
- ChanneltraceDepth
- Caller's depth in call stack, for computing
caller and method names at runtime.public static final void log(java.net.InetAddress host, java.lang.Object logger, java.lang.Throwable e)
host
- hostnamelogger
- Calling objecte
- exception to logpublic static final void log(java.net.InetAddress host, java.lang.Object logger, java.lang.Throwable e, int level)
host
- hostnamelogger
- Calling objecte
- exception to loglevel
- Severity to log the message atpublic static final void log(java.lang.Object logger, java.lang.Throwable e)
logger
- Calling objecte
- Exception to logpublic static final void log(java.lang.Object logger, java.lang.Throwable e, int level)
logger
- Calling objecte
- Exception to loglevel
- Severity to log the message atpublic static final void debug(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message)
host
- hostnamelogger
- Calling objectmessage
- Message to logpublic static final void debug(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
host
- hostnamelogger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void debugToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
host
- hostnamelogger
- Calling objectmessage
- Message to logpublic static final void debugToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
host
- hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void debug(java.lang.Object logger, java.lang.Object message)
logger
- Calling objectmessage
- Message to logpublic static final void debug(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void debugToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
logger
- Calling objectmessage
- Message to logchannel
- Channel to log message onpublic static final void debugToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void info(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message)
host
- Hostnamelogger
- Calling objectmessage
- Message to logpublic static final void info(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void infoToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void infoToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void info(java.lang.Object logger, java.lang.Object message)
logger
- Calling objectmessage
- Message to logpublic static final void info(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void infoToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void infoToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void warning(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message)
host
- Hostnamelogger
- Calling objectmessage
- Message to logpublic static final void warning(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void warningToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void warningToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void warning(java.lang.Object logger, java.lang.Object message)
logger
- Calling objectmessage
- Message to logpublic static final void warning(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void warningToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void warningToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void error(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message)
host
- Hostnamelogger
- Calling objectmessage
- Message to logpublic static final void error(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void errorToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void errorToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void error(java.lang.Object logger, java.lang.Object message)
logger
- Calling objectmessage
- Message to logpublic static final void error(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void errorToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void errorToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void fatal(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message)
host
- Hostnamelogger
- Calling objectmessage
- Message to logpublic static final void fatal(java.net.InetAddress host, java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void fatalToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void fatalToChannel(java.net.InetAddress host, java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
host
- Hostnamelogger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void fatal(java.lang.Object logger, java.lang.Object message)
logger
- Calling objectmessage
- Message to logpublic static final void fatal(java.lang.Object logger, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectmessage
- Message to logdetail
- Extended message or exceptionpublic static final void fatalToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logpublic static final void fatalToChannel(java.lang.Object logger, java.lang.Object channel, java.lang.Object message, java.lang.Object detail)
logger
- Calling objectchannel
- Channel to log message onmessage
- Message to logdetail
- Extended message or exceptionpublic static final void crumb()
public static final void crumb(java.lang.Object logger)
public static final void crumb(java.lang.Object logger, java.lang.Object channel)
public static final boolean canLog(int level)
level
- Message severity to testpublic static final boolean canDebug()
public static final boolean canInfo()
public static final boolean canWarning()
public static final boolean canError()
canLog(int)
public static final boolean canFatal()
canLog(int)
public static final boolean mightLog(java.lang.Object logger, int level)
logger
- Calling objectmightLog(Object, int, Object)
public static final boolean mightDebug(java.lang.Object logger)
logger
- Calling objectmightLog(Object, int, Object)
public static final boolean mightInfo(java.lang.Object logger)
logger
- Calling objectmightLog(Object, int, Object)
public static final boolean mightWarning(java.lang.Object logger)
logger
- Calling objectmightLog(Object, int, Object)
public static final boolean mightError(java.lang.Object logger)
logger
- Calling objectmightLog(Object, int, Object)
public static final boolean mightFatal(java.lang.Object logger)
logger
- Calling objectmightLog(Object, int, Object)
public static final boolean mightDebug(java.lang.Object logger, java.lang.Object channel)
logger
- Calling objectchannel
- Channel name or listmightLog(Object, int, Object)
public static final boolean mightInfo(java.lang.Object logger, java.lang.Object channel)
logger
- Calling objectchannel
- Channel name or listmightLog(Object, int, Object)
public static final boolean mightWarning(java.lang.Object logger, java.lang.Object channel)
logger
- Calling objectchannel
- Channel name or listmightLog(Object, int, Object)
public static final boolean mightError(java.lang.Object logger, java.lang.Object channel)
logger
- Calling objectchannel
- Channel name or listmightLog(Object, int, Object)
public static final boolean mightFatal(java.lang.Object logger, java.lang.Object channel)
logger
- Calling objectchannel
- Channel name or listmightLog(Object, int, Object)
public static final boolean mightLog(java.lang.Object logger, int level, java.lang.Object channel)
logger
- Calling objectlevel
- Message severitychannel
- Channel to log message onpublic static final boolean canLog(java.lang.Object logger, int level)
logger
- Calling objectlevel
- Message severitymightLog(Object, int)
public static final boolean canDebug(java.lang.Object logger)
logger
- Calling objectmightDebug(Object)
public static final boolean canInfo(java.lang.Object logger)
logger
- Calling objectmightInfo(Object)
public static final boolean canWarning(java.lang.Object logger)
logger
- Calling objectmightWarning(Object)
public static final boolean canError(java.lang.Object logger)
logger
- Calling objectmightError(Object)
public static final boolean canFatal(java.lang.Object logger)
logger
- Calling objectmightFatal(Object)
public static void flush()
public static final java.util.ResourceBundle getResources()
public static final java.lang.String getResourceString(java.lang.String name)
name
- Resource name to get
|
Protomatter Software v1.1.8 Copyright 1998-2002 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Software v1.1.8 | http://protomatter.sourceforge.net/1.1.8 |