org.arakhne.logging
Class FileLogger
java.lang.Object
org.arakhne.logging.AbstractLogger
org.arakhne.logging.AbstractStandAloneLogger
org.arakhne.logging.AbstractPrintStreamLogger
org.arakhne.logging.FileLogger
- All Implemented Interfaces:
- Logger
public class FileLogger
- extends AbstractPrintStreamLogger
This class provides the concrete implementation of the Logger
interface. This impl is writting inside a file.
- Version:
- 1.7 (rev:285) 2011-10-14 12:02:59
- Author:
- Stéphane GALLAND
- See Also:
Logger- Maven Group Id:
- org.arakhne.afc
- Maven Artifact Id:
- arakhneLogger
|
Method Summary |
File |
getLogFile()
Replies the log file which is written by this logger. |
| Methods inherited from class org.arakhne.logging.AbstractLogger |
addLoggerEventListener, debug, debug, error, error, fireLoggerEvent, fireLoggerEvent, getLogLevel, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isLoggableFor, isWarnEnabled, log, removeLoggerEventListener, setLogLevel, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileLogger
public FileLogger(File logFile)
throws IOException
- Unamed Logger on system console.
- Parameters:
logFile - is the log file to write inside.
- Throws:
IOException - when error on log file opening.
FileLogger
public FileLogger(File logFile,
String name)
throws IOException
- Named Logger on system console.
- Parameters:
logFile - is the log file to write inside.name - is the name of the logger.
- Throws:
IOException - when error on log file opening.
getLogFile
public File getLogFile()
- Replies the log file which is written by this logger.
- Returns:
- the log file, never
null
Copyright © 2006-2011 Arakhnê.org Consortium. All rights reserved under LGPL license terms.