org.eclipse.etrice.generator.base
Class Logger

java.lang.Object
  extended by org.eclipse.etrice.generator.base.Logger
All Implemented Interfaces:
ILineOutputLogger, ILogger

public class Logger
extends java.lang.Object
implements ILineOutputLogger

a simple logger class implementing the ILineOutputLogger interface. If no ILineOutputLogger is set then output is sent to System.out.

Author:
Henrik Rentz-Reichert

Constructor Summary
Logger()
           
 
Method Summary
 void logError(java.lang.String text, EObject obj)
           
 void logInfo(java.lang.String text)
           
 void setOutput(ILineOutput lo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

logInfo

public void logInfo(java.lang.String text)
Specified by:
logInfo in interface ILogger
Parameters:
text - informational text

logError

public void logError(java.lang.String text,
                     EObject obj)
Specified by:
logError in interface ILogger
Parameters:
text - error text
obj - EObject (if available) where the error occurred

setOutput

public void setOutput(ILineOutput lo)
Specified by:
setOutput in interface ILineOutputLogger
Parameters:
lo - a line output to be used by the logger