|
SeasLog::logThe Common Record Log Function Description
public static bool SeasLog::log(
string $level ,string $message = ?,array $content = ?,string $logger = ?) The Common Record Log Function. Parameters
Return ValuesReturn TRUE on record log information success, FALSE on failure. ExamplesExample #1 SeasLog::log example
The above example will output something similar to: bool(true) array(1) { ["/var/log/www/default/20180707.log"]=> array(1) { [0]=> string(79) "2018-07-07 11:12:37 | INFO | 72427 | 5b402fa56a2ea | 1530933157.436 | info log " } } bool(true) array(1) { ["/var/log/www/default/20180707.log"]=> array(1) { [0]=> string(86) "2018-07-07 11:13:59 | MySelfLevel | 72470 | 5b402ff781c5e | 1530933239.532 | info log " } } bool(true) array(1) { ["/var/log/www/tmp_logger/20180707.log"]=> array(1) { [0]=> string(92) "2018-07-07 11:28:12 | MySelfLevel | 72833 | 5b40334ce6a2f | 1530934092.946 | info log neeke " } } bool(true) array(1) { ["/var/log/www/default/20180707.log"]=> array(1) { [0]=> string(86) "2018-07-07 11:20:12 | INFO | 72616 | 5b40316c3641e | 1530933612.222 | info log neeke " } } See Also
|