de.ls5.jlearn.logging
Class PrintStreamLoggingAppender

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

public class PrintStreamLoggingAppender
extends Object
implements LoggingAppender

Author:
fh

Constructor Summary
PrintStreamLoggingAppender(LogLevel level, PrintStream out)
           
PrintStreamLoggingAppender(LogLevel level, PrintStream out, boolean printLevel, boolean printDate, boolean printClass)
           
PrintStreamLoggingAppender(LogLevel level, PrintStream out, Class clazz)
           
PrintStreamLoggingAppender(PrintStream out)
           
 
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 o, String text, LogLevel lvl, String cls)
           
 void logMQ(Word prefix, Word suffix, Word o, 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

PrintStreamLoggingAppender

public PrintStreamLoggingAppender(PrintStream out)

PrintStreamLoggingAppender

public PrintStreamLoggingAppender(LogLevel level,
                                  PrintStream out)

PrintStreamLoggingAppender

public PrintStreamLoggingAppender(LogLevel level,
                                  PrintStream out,
                                  Class clazz)

PrintStreamLoggingAppender

public PrintStreamLoggingAppender(LogLevel level,
                                  PrintStream out,
                                  boolean printLevel,
                                  boolean printDate,
                                  boolean printClass)
Method Detail

log

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

logPhase

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

logMultiline

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

logMQ

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

logMQ

public void logMQ(Word prefix,
                  Word suffix,
                  Word o,
                  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

close

public void close()
Specified by:
close 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.