org.odftoolkit.odfxsltrunner
Class CommandLineLogger
java.lang.Object
org.odftoolkit.odfxsltrunner.Logger
org.odftoolkit.odfxsltrunner.CommandLineLogger
public class CommandLineLogger
- extends Logger
Logger for command line interface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLineLogger
public CommandLineLogger(PrintStream aOut,
int nLevel)
- Creates a new instance of CommandLineLogger
- Parameters:
aOut
- PrintStream for messages
logMessage
protected void logMessage(String aPrefix,
String aMsg,
String aLocation,
int nLevel)
- Log a message.
- Specified by:
logMessage
in class Logger
- Parameters:
aPrefix
- Message prefixaMsg
- Message textaLocation
- file, row and column number as text (optional)nLevel
- the warning level (one of INFO, WARNING or ERROR)
logMessageWithLocation
protected void logMessageWithLocation(String aPrefix,
String aMsgWithLocation,
int nLevel)
- Log a message.
- Specified by:
logMessageWithLocation
in class Logger
- Parameters:
aPrefix
- Message prefixaMsgWithLocation
- Message text including location informationnLevel
- the warning level (one of INFO, WARNING or ERROR)
Copyright © 2017 The Apache Software Foundation. All rights reserved.