Class: DBLogger

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

Class DBLogger

Class Overview

This Logger saves its Message to the Database.

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

Logger
   |
   --DBLogger
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: DBLogger.php,v 1.9 2008/11/30 15:12:03 kpapst Exp $
Copyright:  Copyright (C) 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
DBLogger   DBLogger()   Pass a Namespace for your Log Instance if desired.
void   log()   Log a message for a special mode.
unknown_type   logEntry()   Logs a full LogEntry (which must be an object of the type classes.logger.LogEntry).
void   logScriptError()  

[ Top ]
Methods
Constructor DBLogger  [line 51]

  DBLogger DBLogger( [String $namespace = '']  )

Pass a Namespace for your Log Instance if desired.

Otherwise you log into the default namespace.

Parameters:
String   $namespace:  the Namespace


[ Top ]
log  [line 63]

  void log( int $mode, String $msg  )

Log a message for a special mode.

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 ]
logEntry  [line 74]

  unknown_type logEntry( $entry $entry  )

Logs a full LogEntry (which must be an object of the type classes.logger.LogEntry).

Parameters:
$entry   $entry: 


Redefinition of:
Logger::logEntry()
Logs a full LogEntry (which must be an object of the type classes.logger.LogEntry).

[ Top ]
logScriptError  [line 110]

  void logScriptError( $errno, $errmsg, $filename, $linenum, $vars  )

Parameters:
   $errno: 
   $errmsg: 
   $filename: 
   $linenum: 
   $vars: 


Redefinition of:
Logger::logScriptError()
Callback function for the PHP logging mechanism.

[ Top ]