PHP Log Writer: Write log messages to files in CSV or JSON formats

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-01-16 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 8 All time: 10,222 This week: 345Up
Version License PHP version Categories
php-log-writer 1.0The PHP License5PHP 5, Logging
Description Author

This class can write log messages to files in CSV or JSON formats.

It can take a variable value and it converts it to a string encoding it in the CSV or JSON formats or using PHP print_r function before it appends the converted string to a file.

The log file is written to a specific file in a given directory. The file name has perfix and the current date as suffix.

Picture of Hillary Kollan
Name: Hillary Kollan <contact>
Classes: 3 packages by
Country: Ghana Ghana
Age: ???
All time rank: 43586 in Ghana Ghana
Week rank: 811 Up5 in Ghana Ghana Up


"# PHP-Log-Writer"


Include class


Set file name


Log arrays, objects, integers or strings in either .log, .json and .csv file formats by setting the extension in the second argument

    $log->logData((object) $_SERVER, 'json');

  Files folder image Files  
File Role Description
Plain text file LaravelLog.php Class Class source
Accessible without login Plain text file logit.php Example Example script
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,222
This week:345Up

For more information send a message to info at phpclasses dot org.