SeasLog::setLogger

(PECL seaslog >=1.0.0)

SeasLog::setLoggerSet SeasLog logger name

Descrizione

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.

Elenco dei parametri

logger

Logger name.

Valori restituiti

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

Esempi

Example #1 SeasLog::setLogger() example

<?php

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

?>

Il precedente esempio visualizzerĂ  qualcosa simile a:

bool(true)

Vedere anche:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top