public abstract class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DISASTER |
static int |
ERROR |
static int |
INFO |
static int |
WARNING |
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
abstract StreamResult |
asStreamResult()
Get a JAXP StreamResult object allowing serialized XML to be written to this Logger
|
void |
close()
Close the logger, indicating that no further messages will be written
and that underlying streams should be closed, if they were created by the Logger
itself rather than by the user.
|
void |
disaster(String message)
Log a message with level
DISASTER |
void |
error(String message)
Log a message with level
ERROR |
void |
info(String message)
Log a message with level
INFO |
abstract void |
println(String message,
int severity)
Log a message.
|
void |
warning(String message)
Log a message with level
WARNING |
public static final int INFO
public static final int WARNING
public static final int ERROR
public static final int DISASTER
public void info(String message)
INFO
message
- the message to be loggedpublic void warning(String message)
WARNING
message
- the message to be loggedpublic void error(String message)
ERROR
message
- the message to be loggedpublic void disaster(String message)
DISASTER
message
- the message to be loggedpublic abstract void println(String message, int severity)
public void close()
public abstract StreamResult asStreamResult()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.