[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/log4php/appenders/ -> LoggerAppenderRollingFile.php (sommaire)

log4php is a PHP port of the log4j java logging package. <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p> <p>Design, strategies and part of the methods documentation are developed by log4j team (Ceki Gülcü as log4j project founder and {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).</p>

Poids: 239 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

LoggerAppenderRollingFile:: (10 méthodes):
  LoggerAppenderRollingFile()
  getExpandedFileName()
  getMaxBackupIndex()
  getMaximumFileSize()
  rollOver()
  setFileName()
  setMaxBackupIndex()
  setMaximumFileSize()
  setMaxFileSize()
  append()


Classe: LoggerAppenderRollingFile  - X-Ref

LoggerAppenderRollingFile extends LoggerAppenderFile to backup the log files
when they reach a certain size.

<p>Parameters are {@link $maxFileSize}, {@link $maxBackupIndex}.</p>

<p>Contributors: Sergio Strampelli.</p>

LoggerAppenderRollingFile($name)   X-Ref
Constructor.

param: string $name appender name

getExpandedFileName()   X-Ref
Returns the value of the MaxBackupIndex option.

return: integer

getMaxBackupIndex()   X-Ref
Returns the value of the MaxBackupIndex option.

return: integer

getMaximumFileSize()   X-Ref
Get the maximum size that the output file is allowed to reach
before being rolled over to backup files.

return: integer

rollOver()   X-Ref
Implements the usual roll over behaviour.

<p>If MaxBackupIndex is positive, then files File.1, ..., File.MaxBackupIndex -1 are renamed to File.2, ..., File.MaxBackupIndex.
Moreover, File is renamed File.1 and closed. A new File is created to receive further log output.

<p>If MaxBackupIndex is equal to zero, then the File is truncated with no backup files created.

setFileName($fileName)   X-Ref
Pas de description

setMaxBackupIndex($maxBackups)   X-Ref
Set the maximum number of backup files to keep around.

<p>The <b>MaxBackupIndex</b> option determines how many backup
files are kept before the oldest is erased. This option takes
a positive integer value. If set to zero, then there will be no
backup files and the log file will be truncated when it reaches
MaxFileSize.

param: mixed $maxBackups

setMaximumFileSize($maxFileSize)   X-Ref
Set the maximum size that the output file is allowed to reach
before being rolled over to backup files.

param: mixed $maxFileSize

setMaxFileSize($value)   X-Ref
Set the maximum size that the output file is allowed to reach
before being rolled over to backup files.
<p>In configuration files, the <b>MaxFileSize</b> option takes an
long integer in the range 0 - 2^63. You can specify the value
with the suffixes "KB", "MB" or "GB" so that the integer is
interpreted being expressed respectively in kilobytes, megabytes
or gigabytes. For example, the value "10KB" will be interpreted
as 10240.

param: mixed $value

append($event)   X-Ref

param: LoggerLoggingEvent $event



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7