PHP Classes
elePHPant
Icontem

PHP Log File Database: Log messages to files or to a MySQL database

Recommend this page to a friend!

  Author Author  
Picture of Junai Hassan
Name: Junai Hassan <contact>
Classes: 1 package by
Country: Saudi Arabia Saudi Arabia


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can log messages to files or to a MySQL database.

It can add to the log messages with different warning levels: error, warning, debug and information. Messages below a given warning level may be ignored.

The messages can be appended to a log file or stored in MySQL database table.

The log file name, message prefix, database connection details and the database table name are configurable parameters.

The class can retry writing to a log file a given number of times after a period if it fails for instance if the file is temporarily locked.

  Classes of Junai Hassan  >  PHP Log File Database  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Log File Database
Base name: php-logger
Description: Log messages to files or to a MySQL database
Version: 1.0
PHP version: 5
License: GNU General Public License (GPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Logging Log generation and processing View top rated classes


  Recommendations  

Create log files
I need to create log files about the user activity.


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file logging.php Class Class for logging
Accessible without login Plain text file logging_tester.php Example Example script to test logging class
Accessible without login Plain text file logs-20130501.txt Output Sample log file
Accessible without login Plain text file read-me.txt Doc. documentation
Accessible without login Plain text file test_db.sql Data SQL table script for database logging

Install with Composer Install with Composer - Download Download all files: php-logger.tar.gz php-logger.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.