[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Pear/Log/ -> file.php (sommaire)

$Header: /repository/pear/Log/Log/file.php,v 1.37 2004/01/19 08:02:40 jon Exp $

Version: $Revision: 1.37 $
Poids: 286 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Log_file:: (7 méthodes):
  Log_file()
  _Log_file()
  _mkpath()
  open()
  close()
  flush()
  log()


Classe: Log_file  - X-Ref

The Log_file class is a concrete implementation of the Log abstract
class that logs messages to a text file.

Log_file($name, $ident = '', $conf = array()   X-Ref
Constructs a new Log_file object.

param: string $name     Ignored.
param: string $ident    The identity string.
param: array  $conf     The configuration array.
param: int    $level    Log messages up to and including this level.

_Log_file()   X-Ref
Destructor


_mkpath($path, $mode = 0700)   X-Ref
Creates the given directory path.  If the parent directories don't
already exist, they will be created, too.

param: string  $path       The full directory path to create.
param: integer $mode       The permissions mode with which the
return: True if the full path is successfully created or already

open()   X-Ref
Opens the log file for output.  If the specified log file does not
already exist, it will be created.  By default, new log entries are
appended to the end of the log file.

This is implicitly called by log(), if necessary.


close()   X-Ref
Closes the log file if it is open.


flush()   X-Ref
Flushes all pending data to the file handle.


log($message, $priority = null)   X-Ref
Logs $message to the output window.  The message is also passed along
to any Log_observer instances that are observing this Log.

param: mixed  $message  String or object containing the message to log.
param: string $priority The priority of the message.  Valid
return: boolean  True on success or false on failure.



Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7