PHP Classes

File: Example.php

Recommend this page to a friend!
  Classes of Stanislav Afanasiev  >  Simple class for logs  >  Example.php  >  Download  
File: Example.php
Role: Example script
Content type: text/plain
Description: Example use
Class: Simple class for logs
Log entries to files
Author: By
Last change:
Date: 6 years ago
Size: 355 bytes


Class file image Download
 * Simple class for logs
 * @description: Example use

 // include class
require_once 'Logger.class.php';
// write in log file
$obLog = new Logger('log.log');
$obLog->LogIt('Start script3',true,"\n","r+",true);
$obLog->LogIt('Start script2',true,"\n","a+",true);
$obLog->LogIt('Start script1',true,"\n","a+",true);