SeasLog
PHP Manual

SeasLog::setLogger

(PECL seaslog >=1.0.0)

SeasLog::setLoggerSet SeasLog logger name

Description

public static bool SeasLog::setLogger ( string $logger )

Use the Function SeasLog::setLogger() will change the value of function SeasLog::getLastLogger(). Than's mean, SeasLog will record loginfo into the logger directory.

Liste de paramètres

logger

Logger name.

Valeurs de retour

Return TRUE on created logger disectory success, FALSE on failure.

Exemples

Exemple #1 SeasLog::setLogger() example

<?php

var_dump
(SeasLog::setLogger('testModule/testLogger'));

?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

bool(true)

Voir aussi


SeasLog
PHP Manual