de.ls5.jlearn.logging
Class PPTLoggingAppender

java.lang.Object
  extended by de.ls5.jlearn.logging.PPTLoggingAppender
All Implemented Interfaces:
LoggingAppender

public class PPTLoggingAppender
extends Object
implements LoggingAppender

Author:
merten

Constructor Summary
PPTLoggingAppender(LogLevel level, File outfile)
           
PPTLoggingAppender(LogLevel level, File outfile, String[] loggedCls)
           
 
Method Summary
 void close()
           
 void enableSlidingImages(boolean b)
           
 Collection<String> getClasses()
           
 LogLevel getLevel()
           
 void log(String text, LogLevel lvl, String cls)
           
 void logCE(Word ce, Word co, Word hypOut, String text, LogLevel lvl, String cls)
           
 void logDSAsDot(String dot, LogLevel lvl, String cls)
           
 void logDSAsText(String text, LogLevel lvl, String cls)
           
 void logHYP(Snapshot hyp, String text, LogLevel lvl, String cls)
           
 void logMQ(Word in, Word out, String text, LogLevel lvl, String cls)
           
 void logMQ(Word prefix, Word suffix, Word out, String text, LogLevel lvl, String cls)
           
 void logMultiline(String header, String content, LogLevel lvl, String cls)
           
 void logPhase(String text, LogLevel lvl, String cls)
           
 void setClasses(Collection<String> classes)
           
 void setLevel(LogLevel lvl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPTLoggingAppender

public PPTLoggingAppender(LogLevel level,
                          File outfile)

PPTLoggingAppender

public PPTLoggingAppender(LogLevel level,
                          File outfile,
                          String[] loggedCls)
Method Detail

enableSlidingImages

public final void enableSlidingImages(boolean b)

log

public void log(String text,
                LogLevel lvl,
                String cls)
Specified by:
log in interface LoggingAppender

logMultiline

public void logMultiline(String header,
                         String content,
                         LogLevel lvl,
                         String cls)
Specified by:
logMultiline in interface LoggingAppender

logPhase

public void logPhase(String text,
                     LogLevel lvl,
                     String cls)
Specified by:
logPhase in interface LoggingAppender

logMQ

public void logMQ(Word in,
                  Word out,
                  String text,
                  LogLevel lvl,
                  String cls)
Specified by:
logMQ in interface LoggingAppender

logMQ

public void logMQ(Word prefix,
                  Word suffix,
                  Word out,
                  String text,
                  LogLevel lvl,
                  String cls)
Specified by:
logMQ in interface LoggingAppender

logHYP

public void logHYP(Snapshot hyp,
                   String text,
                   LogLevel lvl,
                   String cls)
Specified by:
logHYP in interface LoggingAppender

logCE

public void logCE(Word ce,
                  Word co,
                  Word hypOut,
                  String text,
                  LogLevel lvl,
                  String cls)
Specified by:
logCE in interface LoggingAppender

logDSAsText

public void logDSAsText(String text,
                        LogLevel lvl,
                        String cls)
Specified by:
logDSAsText in interface LoggingAppender

logDSAsDot

public void logDSAsDot(String dot,
                       LogLevel lvl,
                       String cls)
Specified by:
logDSAsDot in interface LoggingAppender

getLevel

public LogLevel getLevel()
Specified by:
getLevel in interface LoggingAppender

getClasses

public Collection<String> getClasses()
Specified by:
getClasses in interface LoggingAppender

setClasses

public void setClasses(Collection<String> classes)
Specified by:
setClasses in interface LoggingAppender

setLevel

public void setLevel(LogLevel lvl)
Specified by:
setLevel in interface LoggingAppender

close

public void close()
Specified by:
close in interface LoggingAppender


Copyright © 2011. All Rights Reserved.