org.mentawai.log
Class SimpleLogger

java.lang.Object
  extended by org.mentawai.log.SimpleLogger
All Implemented Interfaces:
Logger

public class SimpleLogger
extends java.lang.Object
implements Logger


Constructor Summary
SimpleLogger(java.io.File file)
           
SimpleLogger(java.io.PrintStream stream)
           
SimpleLogger(java.io.PrintWriter out)
           
SimpleLogger(java.lang.String filename)
           
SimpleLogger(java.lang.String dir, java.lang.String filename)
           
 
Method Summary
 void enable(boolean flag)
           
protected  java.text.Format getHeaderFormat()
           
protected  java.text.Format getRollFileFormat()
           
protected  void header()
           
 void log(java.lang.Object... objects)
           
 void log(java.lang.String... msgs)
           
protected  void printTopHeader()
           
 void roll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogger

public SimpleLogger(java.io.PrintWriter out)

SimpleLogger

public SimpleLogger(java.lang.String filename)
             throws java.io.IOException
Throws:
java.io.IOException

SimpleLogger

public SimpleLogger(java.lang.String dir,
                    java.lang.String filename)
             throws java.io.IOException
Throws:
java.io.IOException

SimpleLogger

public SimpleLogger(java.io.File file)
             throws java.io.IOException
Throws:
java.io.IOException

SimpleLogger

public SimpleLogger(java.io.PrintStream stream)
Method Detail

roll

public void roll()
          throws java.io.IOException
Specified by:
roll in interface Logger
Throws:
java.io.IOException

enable

public void enable(boolean flag)
Specified by:
enable in interface Logger

printTopHeader

protected void printTopHeader()

getRollFileFormat

protected java.text.Format getRollFileFormat()

getHeaderFormat

protected java.text.Format getHeaderFormat()

header

protected void header()

log

public void log(java.lang.String... msgs)
Specified by:
log in interface Logger

log

public void log(java.lang.Object... objects)
Specified by:
log in interface Logger


Copyright © 2005 Mentawai Team. All Rights Reserved.