SeasLog::setLogger

(PECL seaslog >=1.0.0)

SeasLog::setLoggerSet SeasLog logger name

Descrierea

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

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

Parametri

logger

Logger name.

Valorile întoarse

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

Exemple

Example #1 SeasLog::setLogger() example

<?php

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

?>

Exemplul de mai sus va afișa ceva similar cu:

bool(true)

A se vedea și