Class FileLogger

Description

This Logger saves Message to a file.

  • version: $Id: FileLogger.php,v 1.8 2006/11/26 22:03:57 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License
Logger
   |
   --FileLogger
Direct descendents
Class Description
XmlFileLogger This Logger saves the Log Message as XML Entrys to a file.
Method Summary
FileLogger FileLogger ([int $logDefinition = ''], String 1)
void finalize ()
void initLogger ( $dir,  $filename)
void log (int $mode, String $msg)
Variables

Inherited Variables

Inherited from Logger

Logger::$logLevel
Methods
Constructor FileLogger (line 54)

Pass a PREFIX for your file.

If you do not pass a Prefix, your Log messsages might be shared with other Logger instances.

FileLogger FileLogger ([int $logDefinition = ''], String 1)
  • String 1: the Prefix for the File.
  • int $logDefinition: the LogLevel
finalize (line 116)

Closes the Log File handle.

Make sure to call this method before the Script ends!

void finalize ()

Redefinition of:
Logger::finalize()
Clean up all resources that might be used by this Logger!
initLogger (line 71)
  • access: protected
void initLogger ( $dir,  $filename)
  • $dir
  • $filename
log (line 89)

Log a message for a special mode, use this if you wanna use your own level/mode! Overwriten to Log all messages to the desired Log File.

void log (int $mode, String $msg)
  • int $mode: the Log Level
  • String $msg: the Log Message

Redefinition of:
Logger::log()
Log a message for a special mode, use this if you wanna use your own level/mode!

Inherited Methods

Inherited From Logger

Logger::Logger()
Logger::finalize()
Logger::formatBacktrace()
Logger::getDescriptionForMode()
Logger::isDebugEnabled()
Logger::isModeEnabled()
Logger::log()
Logger::logDebug()
Logger::logError()
Logger::logInfo()
Logger::logScriptError()
Logger::logSQL()
Logger::setLogLevel()

Documentation generated by phpDocumentor 1.3.1