Interface LogWriterI18n
Instances of this interface can be obtained by calling DistributedSystem.getLogWriter().
For any logged message the log file will contain:
- The message's level.
- The time the message was logged.
- The id of the thread that logged the message.
- The message itself which can be a string and/or an exception including the exception's stack trace.
A message always has a level. Logging levels are ordered. Enabling logging at a given level also enables logging at higher levels. The higher the level the more important and urgent the message.
The levels, in descending order, are:
severe(highest value) is a message level indicating a serious failure. In generalseveremessages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to information managers.errorIn generalerrormessages should describe events that are of considerable importance but will not prevent normal program execution. They should be reasonably intelligible to end users and to information managers. They are weaker thansevereand stronger thanwarning.warningis a message level indicating a potential problem. In generalwarningmessages should describe events that will be of interest to end users or information managers, or which indicate potential problems.infois a message level for informational messages. Typicallyinfomessages should be reasonably significant and should make sense to end users and system administrators.configis a message level for static configuration messages.configmessages are intended to provide a variety of static configuration information, to assist in debugging problems that may be associated with particular configurations.fineis a message level providing tracing information. In general thefinelevel should be used for information that will be broadly interesting to developers. This level is for the lowest volume, and most important, tracing messages.finerindicates a fairly detailed tracing message. Logging calls for entering, returning, or throwing an exception are traced at thefinerlevel.finest(lowest value) indicates a highly detailed tracing message. In general thefinestlevel should be used for the most voluminous detailed tracing messages.
For each level methods exist that will request a message, at that level, to be logged. These methods are all named after their level.
For each level a method exists that returns a boolean indicating if messages at that level will
currently be logged. The names of these methods are of the form:
levelEnabled.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Writes an exception to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.booleanDeprecated.Deprecated.A mechanism for accessing the abstraction layer used for a plain logger.voidDeprecated.Log a method entry.voidDeprecated.Writes an exception to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.booleanDeprecated.voidDeprecated.Log a method return.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes an exception to this writer.booleanDeprecated.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes an exception to this writer.booleanDeprecated.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes an exception to this writer.booleanDeprecated.Deprecated.Returns a 1.4 logging handler that can be used to direct application output to this GemFire logger using the standard JDK logger APIs.voidDeprecated.Writes an exception to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.booleanDeprecated.voidDeprecated.Writes an exception to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.booleanDeprecated.voidDeprecated.Log throwing an exception.voidDeprecated.Writes an exception to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes a message to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.voidDeprecated.Writes both a message and exception to this writer.booleanDeprecated.
-
Method Details
-
severeEnabled
boolean severeEnabled()Deprecated.- Returns:
- true if "severe" log messages are enabled.
-
severe
Deprecated.Writes an exception to this writer. The exception level is "severe".- Parameters:
throwable- the throwable to write
-
severe
Deprecated.Writes both a message and exception to this writer. The message level is "severe".- Parameters:
messageId- the message to writeparameters- the parameters for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
severe
Deprecated.Writes both a message and exception to this writer. The message level is "severe".- Parameters:
messageId- the message to writeparameter- the parameter for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
severe
Deprecated.Writes both a message and exception to this writer. The message level is "severe".- Parameters:
messageId- the message to writethrowable- the throwable to write- Since:
- GemFire 6.0
-
severe
Deprecated.Writes a message to this writer. The message level is "severe".- Parameters:
messageId- the message to writeparameters- the parameters for the message- Since:
- GemFire 6.0
-
severe
Deprecated.Writes a message to this writer. The message level is "severe".- Parameters:
messageId- the message to writeparameter- the parameter for the message- Since:
- GemFire 6.0
-
severe
Deprecated.Writes a message to this writer. The message level is "severe".- Parameters:
messageId- the message to write- Since:
- GemFire 6.0
-
errorEnabled
boolean errorEnabled()Deprecated.- Returns:
- true if "error" log messages are enabled.
-
error
Deprecated.Writes an exception to this writer. The exception level is "error".- Parameters:
throwable- the throwable to write
-
error
Deprecated.Writes both a message and exception to this writer. The message level is "error".- Parameters:
messageId- the message to writeparameters- the parameters for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
error
Deprecated.Writes both a message and exception to this writer. The message level is "error".- Parameters:
messageId- the message to writeparameter- the parameter for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
error
Deprecated.Writes both a message and exception to this writer. The message level is "error".- Parameters:
messageId- the message to writethrowable- the throwable to write- Since:
- GemFire 6.0
-
error
Deprecated.Writes a message to this writer. The message level is "error".- Parameters:
messageId- the message to writeparameters- the parameters for the message- Since:
- GemFire 6.0
-
error
Deprecated.Writes a message to this writer. The message level is "error".- Parameters:
messageId- the message to writeparameter- the parameter for the message- Since:
- GemFire 6.0
-
error
Deprecated.Writes a message to this writer. The message level is "error".- Parameters:
messageId- the message to write- Since:
- GemFire 6.0
-
warningEnabled
boolean warningEnabled()Deprecated.- Returns:
- true if "warning" log messages are enabled.
-
warning
Deprecated.Writes an exception to this writer. The exception level is "warning".- Parameters:
throwable- the throwable to write
-
warning
Deprecated.Writes both a message and exception to this writer. The message level is "warning".- Parameters:
messageId- the message to writeparameters- the parameters for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
warning
Deprecated.Writes both a message and exception to this writer. The message level is "warning".- Parameters:
messageId- the message to writeparameter- the parameter for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
warning
Deprecated.Writes both a message and exception to this writer. The message level is "warning".- Parameters:
messageId- the message to writethrowable- the throwable to write- Since:
- GemFire 6.0
-
warning
Deprecated.Writes a message to this writer. The message level is "warning".- Parameters:
messageId- the message to writeparameters- the parameters for the message- Since:
- GemFire 6.0
-
warning
Deprecated.Writes a message to this writer. The message level is "warning".- Parameters:
messageId- the message to writeparameter- the parameter for the message- Since:
- GemFire 6.0
-
warning
Deprecated.Writes a message to this writer. The message level is "warning".- Parameters:
messageId- the message to write- Since:
- GemFire 6.0
-
infoEnabled
boolean infoEnabled()Deprecated.- Returns:
- true if "info" log messages are enabled.
-
info
Deprecated.Writes an exception to this writer. The exception level is "information".- Parameters:
throwable- the throwable to write
-
info
Deprecated.Writes both a message and exception to this writer. The message level is "info".- Parameters:
messageId- the message to writeparameters- the parameters for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
info
Deprecated.Writes both a message and exception to this writer. The message level is "info".- Parameters:
messageId- the message to writeparameter- the parameter for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
info
Deprecated.Writes both a message and exception to this writer. The message level is "info".- Parameters:
messageId- the message to writethrowable- the throwable to write- Since:
- GemFire 6.0
-
info
Deprecated.Writes a message to this writer. The message level is "info".- Parameters:
messageId- the message to writeparameters- the parameters for the message- Since:
- GemFire 6.0
-
info
Deprecated.Writes a message to this writer. The message level is "info".- Parameters:
messageId- the message to writeparameter- the parameter for the message- Since:
- GemFire 6.0
-
info
Deprecated.Writes a message to this writer. The message level is "info".- Parameters:
messageId- the message to write- Since:
- GemFire 6.0
-
configEnabled
boolean configEnabled()Deprecated.- Returns:
- true if "config" log messages are enabled.
-
config
Deprecated.Writes an exception to this writer. The exception level is "config".- Parameters:
throwable- the throwable to write
-
config
Deprecated.Writes both a message and exception to this writer. The message level is "config".- Parameters:
messageId- the message to writeparameters- the parameters for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
config
Deprecated.Writes both a message and exception to this writer. The message level is "config".- Parameters:
messageId- the message to writeparameter- the parameter for the messagethrowable- the throwable to write- Since:
- GemFire 6.0
-
config
Deprecated.Writes both a message and exception to this writer. The message level is "config".- Parameters:
messageId- the message to writethrowable- the throwable to write- Since:
- GemFire 6.0
-
config
Deprecated.Writes a message to this writer. The message level is "config".- Parameters:
messageId- the message to writeparameters- the parameters for the message- Since:
- GemFire 6.0
-
config
Deprecated.Writes a message to this writer. The message level is "config".- Parameters:
messageId- the message to writeparameter- the parameter for the message- Since:
- GemFire 6.0
-
config
Deprecated.Writes a message to this writer. The message level is "config".- Parameters:
messageId- the message to write- Since:
- GemFire 6.0
-
fineEnabled
boolean fineEnabled()Deprecated.- Returns:
- true if "fine" log messages are enabled.
-
fine
Deprecated.Writes both a message and exception to this writer. The message level is "fine".- Parameters:
msg- the message to logthrowable- the throwable to log
-
fine
Deprecated.Writes a message to this writer. The message level is "fine".- Parameters:
msg- the message to log
-
fine
Deprecated.Writes an exception to this writer. The exception level is "fine".- Parameters:
throwable- the throwable to log
-
finerEnabled
boolean finerEnabled()Deprecated.- Returns:
- true if "finer" log messages are enabled.
-
finer
Deprecated.Writes both a message and exception to this writer. The message level is "finer".- Parameters:
msg- the message to logthrowable- the throwable to log
-
finer
Deprecated.Writes a message to this writer. The message level is "finer".- Parameters:
msg- the message to log
-
finer
Deprecated.Writes an exception to this writer. The exception level is "finer".- Parameters:
throwable- the throwable to log
-
entering
Deprecated.Log a method entry.The logging is done using the
finerlevel. The string message will start with"ENTRY"and include the class and method names.- Parameters:
sourceClass- Name of class that issued the logging request.sourceMethod- Name of the method that issued the logging request.
-
exiting
Deprecated.Log a method return.The logging is done using the
finerlevel. The string message will start with"RETURN"and include the class and method names.- Parameters:
sourceClass- Name of class that issued the logging request.sourceMethod- Name of the method that issued the logging request.
-
throwing
Deprecated.Log throwing an exception.Use to log that a method is terminating by throwing an exception. The logging is done using the
finerlevel.This is a convenience method that could be done instead by calling
finer(String, Throwable). The string message will start with"THROW"and include the class and method names.- Parameters:
sourceClass- Name of class that issued the logging request.sourceMethod- Name of the method that issued the logging request.thrown- The Throwable that is being thrown.
-
finestEnabled
boolean finestEnabled()Deprecated.- Returns:
- true if "finest" log messages are enabled.
-
finest
Deprecated.Writes both a message and exception to this writer. The message level is "finest".- Parameters:
msg- the message to logthrowable- the throwable to log
-
finest
Deprecated.Writes a message to this writer. The message level is "finest".- Parameters:
msg- the message to log
-
finest
Deprecated.Writes an exception to this writer. The exception level is "finest".- Parameters:
throwable- the throwable to log
-
getHandler
Handler getHandler()Deprecated.Returns a 1.4 logging handler that can be used to direct application output to this GemFire logger using the standard JDK logger APIs. Each time this method is called it creates a new instance of a Handler so care should be taken to not call this method too often.- Returns:
- a 1.4 logging handler
-
convertToLogWriter
LogWriter convertToLogWriter()Deprecated.A mechanism for accessing the abstraction layer used for a plain logger.- Returns:
- a
LogWriter
-