de.ls5.jlearn.logging
Class HtmlLoggingAppender

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

public class HtmlLoggingAppender
extends Object
implements LoggingAppender

Author:
fh

Constructor Summary
HtmlLoggingAppender(LogLevel level, String dir)
           
HtmlLoggingAppender(LogLevel level, String dir, boolean printLevel, boolean printDate, boolean printClass)
           
HtmlLoggingAppender(String dir)
           
 
Method Summary
 void close()
           
 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

HtmlLoggingAppender

public HtmlLoggingAppender(String dir)
                    throws IOException
Throws:
IOException

HtmlLoggingAppender

public HtmlLoggingAppender(LogLevel level,
                           String dir)
                    throws IOException
Throws:
IOException

HtmlLoggingAppender

public HtmlLoggingAppender(LogLevel level,
                           String dir,
                           boolean printLevel,
                           boolean printDate,
                           boolean printClass)
                    throws IOException
Throws:
IOException
Method Detail

close

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

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

setLevel

public void setLevel(LogLevel lvl)
Specified by:
setLevel 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


Copyright © 2011. All Rights Reserved.