SeasLog::setLogger

(PECL seaslog >=1.0.0)

SeasLog::setLoggerSet SeasLog logger name

Description

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.

Parameters

logger

Logger name.

Return Values

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

Examples

Example #1 SeasLog::setLogger() example

<?php

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

?>

The above example will output something similar to:

bool(true)

See Also

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant