PHP Classes

PHP Error Log: Send messages to the PHP error log files or email

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 118 This week: 1All time: 9,514 This week: 560Up
Version Licenses PHP version Categories
errorlog 1.0.0MIT/X Consortium ...5HTTP, Logging
Description 

Author

This class can send messages to the PHP error log files or email.

It users the PHP error_log function to send given messages with details about the current request like server name, user IP address and port, user browser, etc..

The log messages may be sent in text or HTML to either a given file or email address.

Picture of adam berger
  Performance   Level  
Name: adam berger <contact>
Classes: 23 packages by
Country: Poland Poland
Age: ???
All time rank: 74621 in Poland Poland
Week rank: 52 Up3 in Poland Poland Up
Innovation award
Innovation award
Nominee: 8x

Winner: 2x

Example

<?php
include("error-logi.class.php");
 
 
$logi = new error_logi($_SERVER);
  
 
$mesage='B??d log przypisujemy np. b??d pdo lub mysql
                    albo b??d logowania'
;
    
$user='Adam ';
    
$html=true;
  
 
## ustawiamy kiedy zapisujey logi uzytkownika ##
   
$logi--->user_logi_save($mesage,$user);
    
$logi->user_logi_email($mesage, $user, $html);
 
 
## ustawiamy kiedy zapisujey logi globalne ##
    
$logi->global_logi_save($mesage);
     
$logi->global_logi_email($mesage, $html);


Details

errorLog


  Files folder image Files  
File Role Description
Plain text file class-error-log.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file test.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:118
This week:1
All time:9,514
This week:560Up