|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfxsltrunner.Logger
public abstract class Logger
Base class for logging messages.
Field Summary | |
---|---|
static int |
ERROR
Error log level. |
static int |
INFO
Information log level. |
static int |
WARNING
Warning log level. |
Constructor Summary | |
---|---|
protected |
Logger()
Create a new Logger instance. |
Method Summary | |
---|---|
protected String |
getName()
Get name of the file for which messagea are logged. |
boolean |
hasError()
Was an error or fatal error logged. |
protected abstract void |
logMessage(String aPrefix,
String aMsg,
String aLocation,
int nLevel)
Log a message. |
protected abstract void |
logMessageWithLocation(String aPrefix,
String aMsgWithLocation,
int nLevel)
Log a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERROR
public static final int WARNING
public static final int INFO
Constructor Detail |
---|
protected Logger()
Method Detail |
---|
protected String getName()
public boolean hasError()
protected abstract void logMessage(String aPrefix, String aMsg, String aLocation, int nLevel)
aPrefix
- Message prefixaMsg
- Message textaLocation
- file, row and column number as text (optional)nLevel
- the warning level (one of INFO, WARNING or ERROR)protected abstract void logMessageWithLocation(String aPrefix, String aMsgWithLocation, int nLevel)
aPrefix
- Message prefixaMsgWithLocation
- Message text including location informationnLevel
- the warning level (one of INFO, WARNING or ERROR)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |