org.odftoolkit.odfxsltrunner
Class CommandLineLogger

java.lang.Object
  extended by org.odftoolkit.odfxsltrunner.Logger
      extended by org.odftoolkit.odfxsltrunner.CommandLineLogger

public class CommandLineLogger
extends Logger

Logger for command line interface


Field Summary
 
Fields inherited from class org.odftoolkit.odfxsltrunner.Logger
ERROR, INFO, WARNING
 
Constructor Summary
CommandLineLogger(PrintStream aOut, int nLevel)
          Creates a new instance of CommandLineLogger
 
Method Summary
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.
 
Methods inherited from class org.odftoolkit.odfxsltrunner.Logger
getName, hasError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineLogger

public CommandLineLogger(PrintStream aOut,
                         int nLevel)
Creates a new instance of CommandLineLogger

Parameters:
aOut - PrintStream for messages
Method Detail

logMessage

protected void logMessage(String aPrefix,
                          String aMsg,
                          String aLocation,
                          int nLevel)
Log a message.

Specified by:
logMessage in class Logger
Parameters:
aPrefix - Message prefix
aMsg - Message text
aLocation - 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 prefix
aMsgWithLocation - Message text including location information
nLevel - the warning level (one of INFO, WARNING or ERROR)


Copyright © 2017 The Apache Software Foundation. All rights reserved.