Class: RuntimeLogger

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

Class RuntimeLogger

Class Overview

This Logger saves all messages within an internal array. You may fetch these messages at the end of the call and use them for whatever you want (output in html, save to file...).

They are lost within the end of the call.

Located in /CORE/system/classes/logger/RuntimeLogger.php [line 40]

Logger
   |
   --RuntimeLogger
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: RuntimeLogger.php,v 1.6 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 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
void   countLog()  
void   dumpMessages()  
void   finalize()  
void   log()  
void   Logger()  

[ Top ]
Methods
countLog  [line 81]

  void countLog( $mode  )

Parameters:
   $mode: 


[ Top ]
dumpMessages  [line 69]

  void dumpMessages( $mode, [ $pre = '<!-- '], [ $past = ' -->'], [ $showDesc = true]  )

Parameters:
   $mode: 
   $pre: 
   $past: 
   $showDesc: 


[ Top ]
finalize  [line 86]

  void finalize( )



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

[ Top ]
log  [line 63]

  void log( $mode, $msg  )

Parameters:
   $mode: 
   $msg: 


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

[ Top ]
Logger  [line 51]

  void Logger( )



Redefinition of:
Logger::Logger()
Create a new Logger instance with the given Log Level.

[ Top ]