Login   Register  
PHP Classes
elePHPant
Icontem

File: Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2011-03-01 21:42
Size: 355 bytes
 

Contents

Class file image Download
<?php
/**
 * 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);
?>