public abstract class Logger
extends java.lang.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 javax.xml.transform.stream.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(java.lang.String message)
Log a message with level
DISASTER |
void |
error(java.lang.String message)
Log a message with level
ERROR |
void |
info(java.lang.String message)
Log a message with level
INFO |
abstract void |
println(java.lang.String message,
int severity)
Log a message.
|
void |
warning(java.lang.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(java.lang.String message)
INFO
message
- the message to be loggedpublic void warning(java.lang.String message)
WARNING
message
- the message to be loggedpublic void error(java.lang.String message)
ERROR
message
- the message to be loggedpublic void disaster(java.lang.String message)
DISASTER
message
- the message to be loggedpublic abstract void println(java.lang.String message, int severity)
public void close()
public abstract javax.xml.transform.stream.StreamResult asStreamResult()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.