yu.ac.bg.etf.javaqx.logging.simple
Class SimpleFileLogger

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.logging.simple.SimpleLogger
      extended byyu.ac.bg.etf.javaqx.logging.simple.SimpleFileLogger
All Implemented Interfaces:
LoggingAdapter

public class SimpleFileLogger
extends SimpleLogger

Simple file logging.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Constructor Summary
SimpleFileLogger()
          Constructs new FileLogger object.
SimpleFileLogger(java.lang.String fileName)
          Constructs new FileLogger object.
SimpleFileLogger(java.lang.String fileName, boolean append)
          Constructs new FileLogger object.
 
Method Summary
 java.lang.String getName()
          Returns the name of the logging adapter.
 
Methods inherited from class yu.ac.bg.etf.javaqx.logging.simple.SimpleLogger
getLevel, isLoggable, log, log, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileLogger

public SimpleFileLogger()
                 throws java.io.FileNotFoundException
Constructs new FileLogger object.

Throws:
java.io.FileNotFoundException - if the log file could not be created

SimpleFileLogger

public SimpleFileLogger(java.lang.String fileName)
                 throws java.io.FileNotFoundException
Constructs new FileLogger object.

Parameters:
fileName - the log file name
Throws:
java.io.FileNotFoundException - if the log file could not be created

SimpleFileLogger

public SimpleFileLogger(java.lang.String fileName,
                        boolean append)
                 throws java.io.FileNotFoundException
Constructs new FileLogger object.

Parameters:
fileName - the log file name
append - whether or not to append logs to the log file
Throws:
java.io.FileNotFoundException - if the log file could not be created
Method Detail

getName

public java.lang.String getName()
Returns the name of the logging adapter.

Specified by:
getName in interface LoggingAdapter
Overrides:
getName in class SimpleLogger


Copyright © 2007 ETF and contributors. All Rights Reserved.