PHP Classes

Log-class: Log activity messages to files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 600 All time: 5,195 This week: 455Up
Version License PHP version Categories
logclass 1.0BSD License5PHP 5, Logging
Description 

Author

This class can log activity messages to files.

It takes a message string about an activity to log and writes it to a given log file.

The log file name is determined by a combination of the current date, a given prefix and a file name extension.

The directory where the log files will be stored is configurable.

The format of the log messages stored in the file include the current date and time and a log message identifier.

Picture of Ivan Stojmenovic
Name: Ivan Stojmenovic <contact>
Classes: 2 packages by
Country: Serbia Serbia

  Files folder image Files (3)  
File Role Description
Files folder imagelogs (1 file)
Accessible without login Plain text file example.php Example Example how to use
Plain text file log.class.php Class Core logging class

  Files folder image Files (3)  /  logs  
File Role Description
  Accessible without login Plain text file log_2012-06-26 Data log file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:600
This week:0
All time:5,195
This week:455Up