\Logger

Logger Logger::getInstance(); Logger::log("Message");

Summary

Methods
Properties
Constants
__wakeup()
getInstance()
writeLog()
log()
No public properties found
No constants found
__construct()
__clone()
No protected properties found
N/A
No private methods found
$instances
N/A

Properties

$instances

$instances

Methods

__wakeup()

__wakeup() : mixed

Returns

mixed —

getInstance()

getInstance() : mixed

The method you use to get the Singleton's instance.

Returns

mixed —

writeLog()

writeLog(string  $file_name, string  $message, mixed  $period = 'd') : void

Write a log entry to the opened file resource.

Parameters

string $file_name
string $message
mixed $period

log()

log(string  $file_name, string  $message, string  $period = 'd') : void

log shortcut $period ['d','w','m']

Parameters

string $file_name
string $message
string $period

__construct()

__construct() : mixed

Returns

mixed —

__clone()

__clone() : mixed

Cloning and unserialization are not permitted for singletons.

Returns

mixed —