Class: FileLogger

Source Location: /CORE/system/classes/logger/FileLogger.php

Class FileLogger

Class Overview

This Logger saves Message to a file.

Located in /CORE/system/classes/logger/FileLogger.php [line 38]

Logger
   |
   --FileLogger
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: FileLogger.php,v 1.8 2006/11/26 22:03:57 kpapst Exp $
Copyright:  Copyright (C) 2002-2006 Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Descendants
Child Class Description
XmlFileLogger This Logger saves the Log Message as XML Entrys to a file.

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Logger

Logger::$logLevel

Inherited From Logger

Logger::Logger()
Create a new Logger instance with the given Log Level.
Logger::finalize()
Clean up all resources that might be used by this Logger!
Logger::formatBacktrace()
Formats one Entry of a Backtrace Entry.
Logger::getDescriptionForMode()
Returns the Description for the given Mode.
Logger::getErrorLevel()
Returns an array with all error level
Logger::getLogLevel()
Returns the current LogLevel.
Logger::isDebugEnabled()
Returns if Debugging is enabled.
Logger::isModeEnabled()
Returns if the given Mode is enabled.
Logger::log()
Log a message for a special mode, use this if you wanna use your own level/mode!
Logger::logDebug()
Messages of this Type are most often used for development or error search!
Logger::logEntry()
Logs a full LogEntry (which must be an object of the type classes.logger.LogEntry).
Logger::logError()
Messages of this Type will always be logged!
Logger::logInfo()
Messages of this Type are used for information messages.
Logger::logScriptError()
Callback function for the PHP logging mechanism.
Logger::logSQL()
Only SQL querys should be logged by this function, they have the lowest priority.
Logger::setLogLevel()
Sets the Level, that defines which Messages will be dumped.

[ Top ]
Method Summary
FileLogger   FileLogger()   Pass a PREFIX for your file.
void   finalize()   Closes the Log File handle.
void   initLogger()  
void   log()   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.

[ Top ]
Methods
Constructor FileLogger  [line 54]

  FileLogger FileLogger( [int $logDefinition = ''], String 1  )

Pass a PREFIX for your file.

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

Parameters:
String   1:  the Prefix for the File.
int   $logDefinition:  the LogLevel


[ Top ]
finalize  [line 116]

  void finalize( )

Closes the Log File handle.

Make sure to call this method before the Script ends!



Redefinition of:
Logger::finalize()
Clean up all resources that might be used by this Logger!

[ Top ]
initLogger  [line 71]

  void initLogger( $dir, $filename  )

Parameters:
   $dir: 
   $filename: 

API Tags:
Access:  protected


[ Top ]
log  [line 89]

  void log( int $mode, String $msg  )

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.

Parameters:
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!

[ Top ]