public class Log
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Log.DefaultLogBackEnd
The default back end sends information to the console.
|
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addBackEnd(LogBackEnd backEnd)
Adds a LogBackEnd to the log.
|
static void |
append(java.lang.String type,
java.lang.String message)
Appends a message to all currently registered back ends.
|
static void |
append(java.lang.String type,
java.lang.Throwable t)
Appends an exception to the log back ends by converting it to a string.
|
public static void addBackEnd(LogBackEnd backEnd)
backEnd - The back end to register. If this is the first call, this will replace
the default back end.public static void append(java.lang.String type,
java.lang.String message)
type - Some string indicating the message type. Application specific.message - The log message.public static void append(java.lang.String type,
java.lang.Throwable t)
type - Type of message. Application specific.t - The exception.