PHP Classes

File: README.txt

Recommend this page to a friend!
  Classes of Nikola Posa  >  EasyLogger  >  README.txt  >  Download  
File: README.txt
Role: Documentation
Content type: text/plain
Description: Readme file
Class: EasyLogger
Log events to files
Author: By
Last change: Fixing usage instructions.
Date: 8 years ago
Size: 1,302 bytes


Class file image Download
EasyLogger is a simple, but still extensible PHP logger, which provides 
interface for implementing various logging storage strategies, through 
its handlers  API. Stream-based log handler implementation is bundled.

Nikola Posa <>

- Extensible PHP logger
- Provides option various logging storage strategies through its handlers API
- Bundeled stream-based log handler

EasyLogger 2.0

Copy library/EasyLogger folder, as well as library/EasyLogger.php file, 
in some of your project's  folder, for example, in folder where you keep 
your libraries, and put it in the  include path.

//Create logger instance:
$logger = new EasyLogger();

//Register some handler with it:
$logger->addHandler(new EasyLogger_Handler_StreamHandler('/path/to/some/file.log'));

//At some point, log some event:
$logger->log(EasyLogger::LEVEL_INFO, 'Hello world!');

//... or by using shortcut methods:
$logger->info('Hello world again!');

PHP 5 >= 5.1.0
PHPUnit >= 3.4

The files in this archive are released under the New BSD License.
You can find a copy of this license in LICENSE.txt.
For more information send a message to info at phpclasses dot org.