PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Hillary Kollan  >  PHP Log Writer  >  readme.md  >  Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Log Writer
Write log messages to files in CSV or JSON formats
Author: By
Last change:
Date: 1 year ago
Size: 346 bytes
 

Contents

Class file image Download

"# PHP-Log-Writer"

Usage

Include class

    include('LaravelLog.php');

Set file name

    $log->setFileName('requests');

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');

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