railo.commons.io.log
Class LogFile

java.lang.Object
  extended by railo.commons.io.log.LogResource
      extended by railo.commons.io.log.LogFile
All Implemented Interfaces:
Log

public final class LogFile
extends LogResource

Simple Logger to log data to a file


Field Summary
 
Fields inherited from class railo.commons.io.log.LogResource
MAX_FILE_SIZE, MAX_FILES
 
Fields inherited from interface railo.commons.io.log.Log
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
LogFile(File file, int logLevel, String charset)
          Constructor of the Logger
LogFile(File file, long maxFileSize, int maxFiles, int logLevel, String charset)
          Constructor of the Logger
LogFile(File file, long maxFileSize, int logLevel, String charset)
          Constructor of the Logger
 
Method Summary
 
Methods inherited from class railo.commons.io.log.LogResource
debug, error, fatal, getLogLevel, getMaxFiles, getMaxFileSize, getResource, info, log, setLogLevel, toString, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogFile

public LogFile(File file,
               int logLevel,
               String charset)
        throws IOException
Constructor of the Logger

Parameters:
file - file to log to
logLevel -
Throws:
IOException

LogFile

public LogFile(File file,
               long maxFileSize,
               int logLevel,
               String charset)
        throws IOException
Constructor of the Logger

Parameters:
file - file to log to
maxFileSize - max file size if file is greater creates a backup file of the actuell file and creates a new one.
logLevel -
Throws:
IOException

LogFile

public LogFile(File file,
               long maxFileSize,
               int maxFiles,
               int logLevel,
               String charset)
        throws IOException
Constructor of the Logger

Parameters:
file - file to log to
maxFileSize - max file size if file is greater creates a backup file of the actuell file and creates a new one.
maxFiles - max count of files
logLevel -
Throws:
IOException


Copyright © 2012 Railo