PHP Classes
elePHPant
Icontem

EasyLogger: Log events to files

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2013-01-26 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 577 All time: 5,079 This week: 1,043Up
Version License PHP version Categories
easy_logger 2.0Custom (specified...5.1PHP 5, Logging
Description Author

This class can be used to log events to files or other destinations.

It can send messages to log handlers about events of different levels of priority. A file stream log handler is provided.

The log entries date and time format is configurable.

Log messages are grouped by date, so only if the current date is different from the last logged event date, new date will be added before log messages for that day.

Picture of Nikola Posa
Name: Nikola Posa <contact>
Classes: 4 packages by
Country: ???

Details
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.

AUTHOR
------
Nikola Posa <posa.nikola@gmail.com>

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

VERSION INFORMATION
-------------------
EasyLogger 2.0

INSTALLATION
------------
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.

USAGE
-----
//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!');

SYSTEM REQUIREMENTS
-------------------
PHP 5 >= 5.1.0
PHPUnit >= 3.4

LICENSE
-------
The files in this archive are released under the New BSD License.
You can find a copy of this license in LICENSE.txt.
  Files folder image Files  
File Role Description
Files folder imagelibrary (1 file, 1 directory)
Files folder imagetests (2 files, 1 directory)
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file README.txt Doc. Readme file

  Files folder image Files  /  library  
File Role Description
Files folder imageEasyLogger (1 directory)
  Accessible without login Plain text file EasyLogger.php Class Logger class

  Files folder image Files  /  library  /  EasyLogger  
File Role Description
Files folder imageHandler (3 files)

  Files folder image Files  /  library  /  EasyLogger  /  Handler  
File Role Description
  Accessible without login Plain text file HandlerInterface.php Class Log handler interface.
  Accessible without login Plain text file StreamHandler.php Class Stream-based log handler
  Accessible without login Plain text file TestHandler.php Class Handler used only in unit tests

  Files folder image Files  /  tests  
File Role Description
Files folder imageEasyLogger (1 file, 1 directory)
  Accessible without login Plain text file bootstrap.php Test Tests bootstrap
  Accessible without login Plain text file phpunit.xml Test PHPUnit configuration

  Files folder image Files  /  tests  /  EasyLogger  
File Role Description
Files folder imageHandler (2 files)
  Accessible without login Plain text file EasyLoggerTest.php Test Logger tests

  Files folder image Files  /  tests  /  EasyLogger  /  Handler  
File Role Description
  Accessible without login Plain text file HandlerTestCase.php Test Base handlers test case
  Accessible without login Plain text file StreamHandlerTest.php Test Stream handler tests

 Version Control Unique User Downloads Download Rankings  
 0%
Total:577
This week:0
All time:5,079
This week:1,043Up