gnu.inet.util
Class Logger
public abstract class Logger
extends java.lang.Object
Provides a simple logging mechanism for GNU inetlib and providers.
It is not possible to use the java.logging API as this doesn't exist
prior to Java 1.4.
- Chris Burdess
void | config(String message) - Logs a configuration message.
|
static Logger | getInstance() - Returns the singleton instance of this class.
|
void | log(String protocol, String message) - Logs a provider-specific debugging message.
|
static void | setInstance(Logger logger) - Sets the singleton instance of this class.
|
config
public void config(String message)
Logs a configuration message.
This is used by the inetlib implementation itself.
message
- the message
getInstance
public static Logger getInstance()
Returns the singleton instance of this class.
log
public void log(String protocol,
String message)
Logs a provider-specific debugging message.
protocol
- the provider protocolmessage
- the message
setInstance
public static void setInstance(Logger logger)
Sets the singleton instance of this class.
logger
- the new logger to use
© Copyright 2003 The Free Software Foundation,
all rights reserved