util 
[ doc home ] [ class tree: util ] [ index: util ] [ all elements ]

Class: IsterLoggerDebug

Source Location: /IsterLoggerDebug.php

Class Overview

IsterLogger
   |
   --IsterLoggerFile
      |
      --IsterLoggerDebug

This class represents a log writer.


Author(s): Ingo Schramm   

Copyright: Copyright (c) 2005 Ister.ORG Ingo Schramm

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterLoggerFile

IsterLoggerFile::IsterLoggerFile()
Constructor
IsterLoggerFile::log()
Write a line to the logfile.

Class: IsterLogger

IsterLogger::IsterLogger()
Constructor
IsterLogger::getLevelStr()
Return a string representation of the log level.
IsterLogger::log()
Print the log message.
IsterLogger::setup()
Setup the logger.

Class Details

This class represents a log writer.

You must use setupLogger() to pass a valid ressource before you can use IsterLoggerFile.

  1. $o = new IsterObject;
  2. $fh = fopen('file.log', 'a');
  3. $o->addLogger('IsterLoggerFile');
  4. $o->setupLogger('IsterLoggerMysql',
  5. array('fh' => $filehandle,
  6. 'loglevel' => E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE));
The ressource passed via 'fh' may also be a stream, pipe or socket.


copyright:  Copyright (c) 2005 Ister.ORG Ingo Schramm
author:  Ingo Schramm


[ Top ]


Class Methods


constructor IsterLoggerDebug

IsterLoggerDebug IsterLoggerDebug( )

Constructor

[ Top ]

method log

integer log( string $msg, integer $level, string $caller, [string $context = null])

Write a line to the log file including ressource usage.

On E_USER_ERROR a backtrace will be printed to stdout.


Overrides IsterLoggerFile::log() (Write a line to the logfile.)

Parameters:

string   $msg  
integer   $level  
string   $caller  
string   $context  

[ Top ]


Documentation generated on Tue, 20 Dec 2005 11:20:54 +0100 by phpDocumentor 1.3.0RC4