org.odftoolkit.odfxsltrunner
public abstract class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
Error log level.
|
static int |
INFO
Information log level.
|
static int |
WARNING
Warning log level.
|
Modifier | Constructor and Description |
---|---|
protected |
Logger()
Create a new Logger instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int ERROR
public static final int WARNING
public static final int INFO
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)Copyright © 2014 The Apache Software Foundation. All Rights Reserved.