PHP Classes
Icontem

File: readme.txt


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrioli Darvin  >  DLog  >  readme.txt  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: DLog
Simple logging class.
 

Contents

Class file image Download
DLog version 1.0

Description:
----------------------
Simple logging class. It allow to log the event calling it directly or as
an error handler. For each error type, you may specify how to log the information.

The class may:
- send an e-mail
- write a logging file
- register into database (Mysql or MSSql supported, but you may want to extend the
  class to support other database)
- display the error or the message
- do nothing... you may set to take no action in some situation.

Installation:
----------------------
PHP => 4.3.0 - I've test the class using PHP 4.3.0 and PHP 4.3.1.
               I think the class should work with PHP 4.2.x, except
               the function 'register_error_handler';
Configure the [mail function] section in php.ini if you plan to send the e-mail
If you plan to log the event into some database, define a table as follow
(example taken from Mysql):

CREATE TABLE dlog (
  id int(10) unsigned NOT NULL auto_increment,
  DEvent varchar(14) DEFAULT '0' ,
  Errno int(3) DEFAULT '0' ,
  Text varchar(250) DEFAULT '0' ,
  FileName varchar(250) DEFAULT '0' ,
  Line int(3) DEFAULT '0' ,
  RemAddr varchar(20) NOT NULL DEFAULT '' ,
  Browser varchar(100) NOT NULL DEFAULT '' ,
  PRIMARY KEY (id)
);

That's all. I hope it be useful.
Darvin
(darvina at libero dot it)

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products