Class: XmlFileLogger

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

Class XmlFileLogger

Class Overview

This Logger saves the Log Message as XML Entrys to a file.

It directly extends the FileLogger and only transforms the Log Messages into a diffenrent Format.

Located in /CORE/system/classes/logger/XmlFileLogger.php [line 39]

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

Methods

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

Inherited From Logger

Logger::$logLevel

Inherited From FileLogger

FileLogger::FileLogger()
Pass a PREFIX for your file.
FileLogger::finalize()
Closes the Log File handle.
FileLogger::initLogger()
FileLogger::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.

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
XmlFileLogger   XmlFileLogger()   Pass a PREFIX for your file.

[ Top ]
Methods
Constructor XmlFileLogger  [line 50]

  XmlFileLogger XmlFileLogger( [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 ]