[ Menü ]
Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals
[ Inhalt ]
Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum
[ Statistik ]
Hits gesamt: 5202155
Hits Heute: 258
max. Hits (10.07.07): 6964
User Online: 38
Scripts: 2828
[ Partner ]
CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes
[ Facebook ]
[ Eigene Domain? ]
.de
.com
.net
.org
.info
.biz
[ Buchtipp ]
PHP und MySQL - M+T Training Programmierung . Erfolgreich einsteigen zu Hause und im
Manuals > PEAR > Examples
PEAR Manual
Prev
Next
Examples
Examples -- How to use
Log
.
Logging to files
Example 28-1.
In the following example code, all log messages are written into the file
user.log
.
<?php require_once 'Log.php'; $conf = array('mode' => 0600, 'timeFormat' => '%X %x'); $log = &Log::singleton('file', '/tmp/user.log', 'test1', $conf, LOG_INFO); for ($i = 0; $i < 12; $i++) { $log->log("Foo: $i", LOG_INFO); } $log->close(); ?>
Prev
Home
Next
Logging container
Up
Initialization
Copyright 1998 - 2009 by I.S.U.M.