torero.util
Class Logger

java.lang.Object
  |
  +--torero.util.Logger

public class Logger
extends Object

The logging component for torero. It provides an errorStream and an outStream for logging error and info messages.


Constructor Summary
Logger()
           
 
Method Summary
static void execAddAttrib(String scope, String attribname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execAddAttrib(Symbol scope, Attribute attrib)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execAddSource(AttributeAssingnment scope, Production.ListElement srcLe, Attribute srcAttrib)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execAddSource(String scope, String srcLeName, String srcAttribName)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execAddTaversal(Production scope, Traversal trav)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execAddTaversal(String scope, String travname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execDelAttrib(String attribname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execDelTraversal(String traversalname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execLoadYacc(File file)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execLoadYacc(String filename)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execNewAttrib(String attribname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execNewTraversal(String traversalname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execObtainAss(Production scope, Production.ListElement destLe, Attribute destAttrib)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execObtainAss(Production scope, Production.ListElement destLe, Attribute destAttrib, Production.ListElement srcLe, Attribute srcAttrib)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execObtainAss(String scope, String destLeName, String destAttribName)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemAttrib(String scope, String attribname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemAttrib(Symbol scope, Attribute attrib)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemSource(AttributeAssingnment scope, AttributeAssingnment.AttribKey srcAk)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemSource(AttributeAssingnment scope, Production.ListElement srcLe, Attribute srcAttrib)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemSource(String scope, String srcLeName, String srcAttribName)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemTaversal(Production scope, Traversal trav)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execRemTaversal(String scope, String travname)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execSaveJPG(File file)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execSaveJPG(String filename)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execSaveOx(File file)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void execSaveOx(String filename)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static int getDebugLevel()
          Get the actual debug level.
static PrintStream getErrorStream()
          Get errorstream class for logging info messages.
static PrintStream getOutStream()
          Get outstream class for logging info messages.
static void recordErrorBegin()
          Starts a session where all text written to the errorStream is recorded.
static String recordErrorEnd()
          Ends a recording session and returns all recorded text.
static void saveSession(File file)
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
static void setDebugLevel(int level)
          Set's the debuglevel.
static void startSession()
          For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.
 
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

setDebugLevel

public static void setDebugLevel(int level)
Set's the debuglevel.
Parameters:
level=0: - nothing is logged, level=1: only error messages are logged, level=2: all messages (error and info) are logged.

getDebugLevel

public static int getDebugLevel()
Get the actual debug level.
Returns:
the actual debuglevel.

getOutStream

public static PrintStream getOutStream()
Get outstream class for logging info messages.
Returns:
a singleton printStream.

getErrorStream

public static PrintStream getErrorStream()
Get errorstream class for logging info messages.
Returns:
a singleton printStream.

recordErrorBegin

public static void recordErrorBegin()
Starts a session where all text written to the errorStream is recorded.

recordErrorEnd

public static String recordErrorEnd()
Ends a recording session and returns all recorded text.
Returns:
the recorded text.

startSession

public static void startSession()
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

saveSession

public static void saveSession(File file)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execLoadYacc

public static void execLoadYacc(File file)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execLoadYacc

public static void execLoadYacc(String filename)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execSaveOx

public static void execSaveOx(File file)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execSaveOx

public static void execSaveOx(String filename)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execSaveJPG

public static void execSaveJPG(File file)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execSaveJPG

public static void execSaveJPG(String filename)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execNewAttrib

public static void execNewAttrib(String attribname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execNewTraversal

public static void execNewTraversal(String traversalname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execDelAttrib

public static void execDelAttrib(String attribname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execDelTraversal

public static void execDelTraversal(String traversalname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execAddAttrib

public static void execAddAttrib(Symbol scope,
                                 Attribute attrib)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execAddAttrib

public static void execAddAttrib(String scope,
                                 String attribname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemAttrib

public static void execRemAttrib(Symbol scope,
                                 Attribute attrib)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemAttrib

public static void execRemAttrib(String scope,
                                 String attribname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execAddTaversal

public static void execAddTaversal(Production scope,
                                   Traversal trav)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execAddTaversal

public static void execAddTaversal(String scope,
                                   String travname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemTaversal

public static void execRemTaversal(Production scope,
                                   Traversal trav)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemTaversal

public static void execRemTaversal(String scope,
                                   String travname)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execObtainAss

public static void execObtainAss(Production scope,
                                 Production.ListElement destLe,
                                 Attribute destAttrib)
                          throws ModelException
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execObtainAss

public static void execObtainAss(Production scope,
                                 Production.ListElement destLe,
                                 Attribute destAttrib,
                                 Production.ListElement srcLe,
                                 Attribute srcAttrib)
                          throws ModelException
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execObtainAss

public static void execObtainAss(String scope,
                                 String destLeName,
                                 String destAttribName)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execAddSource

public static void execAddSource(AttributeAssingnment scope,
                                 Production.ListElement srcLe,
                                 Attribute srcAttrib)
                          throws ModelException
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execAddSource

public static void execAddSource(String scope,
                                 String srcLeName,
                                 String srcAttribName)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemSource

public static void execRemSource(AttributeAssingnment scope,
                                 AttributeAssingnment.AttribKey srcAk)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemSource

public static void execRemSource(AttributeAssingnment scope,
                                 Production.ListElement srcLe,
                                 Attribute srcAttrib)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.

execRemSource

public static void execRemSource(String scope,
                                 String srcLeName,
                                 String srcAttribName)
For session logging inside Torero (should replace saving and loading of serialized grammars in future), not finished yet.