info.informatica.log
Class FileLogger

java.lang.Object
  extended by info.informatica.log.BaseLogger
      extended by info.informatica.log.ExtendedLogger
          extended by info.informatica.log.FileLogger
All Implemented Interfaces:
Logger

public class FileLogger
extends ExtendedLogger

File-based Logger

Version:
1.00, noviembre 1999
Author:
amengual at informatica dot info

Field Summary
 
Fields inherited from interface info.informatica.log.Logger
LOG_ALERT, LOG_CRIT, LOG_DEBUG, LOG_EMERG, LOG_ERR, LOG_INFO, LOG_NOTICE, LOG_WARNING
 
Constructor Summary
FileLogger()
           
 
Method Summary
 void closeLog()
           
 void init(String s)
          Initialize this logger with the filename
 void log(String ohost, String clase, int level, String s)
          This must be implemented by ExtendedLoggers
 void log(String ohost, String clase, int level, Throwable t, String s)
          This must be implemented by ExtendedLoggers
 
Methods inherited from class info.informatica.log.ExtendedLogger
getExtendedLogger, log, log, log
 
Methods inherited from class info.informatica.log.BaseLogger
getLogDate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLogger

public FileLogger()
Method Detail

init

public void init(String s)
          throws LogConfigException
Initialize this logger with the filename

Overrides:
init in class ExtendedLogger
Parameters:
s - Path to log file
Throws:
LogConfigException

log

public void log(String ohost,
                String clase,
                int level,
                String s)
Description copied from class: ExtendedLogger
This must be implemented by ExtendedLoggers

Specified by:
log in class ExtendedLogger
Parameters:
ohost - Origin host
clase - Class producing the log
level - Log level
s - Log message

log

public void log(String ohost,
                String clase,
                int level,
                Throwable t,
                String s)
Description copied from class: ExtendedLogger
This must be implemented by ExtendedLoggers

Specified by:
log in class ExtendedLogger
Parameters:
ohost - Origin host
clase - Class producing the log
level - Log level
t - The throwable exception to be logged
s - Log message

closeLog

public void closeLog()
Specified by:
closeLog in class BaseLogger