PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 118 All time: 9,529 This week: 673Up
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: 74521 in Poland Poland
Week rank: 170 Up1 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 (4)  
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

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  
 100%
Total:118
This week:0
All time:9,529
This week:673Up