org.odftoolkit.odfxsltrunner
public class CommandLineLogger extends Logger
Constructor and Description |
---|
CommandLineLogger(PrintStream aOut,
int nLevel)
Creates a new instance of CommandLineLogger
|
Modifier and Type | Method and Description |
---|---|
protected void |
logMessage(String aPrefix,
String aMsg,
String aLocation,
int nLevel)
Log a message.
|
protected void |
logMessageWithLocation(String aPrefix,
String aMsgWithLocation,
int nLevel)
Log a message.
|
public CommandLineLogger(PrintStream aOut, int nLevel)
aOut
- PrintStream for messagesprotected void logMessage(String aPrefix, String aMsg, String aLocation, int nLevel)
logMessage
in class Logger
aPrefix
- Message prefixaMsg
- Message textaLocation
- file, row and column number as text (optional)nLevel
- the warning level (one of INFO, WARNING or ERROR)protected void logMessageWithLocation(String aPrefix, String aMsgWithLocation, int nLevel)
logMessageWithLocation
in class Logger
aPrefix
- Message prefixaMsgWithLocation
- Message text including location informationnLevel
- the warning level (one of INFO, WARNING or ERROR)Copyright © 2014 The Apache Software Foundation. All Rights Reserved.