(PECL seaslog >=1.0.0)
SeasLog::notice — Record notice log information
Record notice log information.
Note: "NOTICE" - Normal but significant events.Information that is more important than the INFO level during execution.
messagecontentloggerReturn TRUE on record log information success, FALSE on failure.
Example #1 SeasLog::notice() example
<?php
var_dump(SeasLog::notice('log message'));
//with content
var_dump(SeasLog::notice('log message from {NAME}',array('NAME' => 'neeke')));
//with tmp logger
var_dump(SeasLog::notice('log message from {NAME}',array('NAME' => 'neeke'),'tmp_logger'));
var_dump(SeasLog::getBuffer());
?>The above example will output something similar to:
bool(true)
bool(true)
bool(true)
array(2) {
["/var/log/www/default/20180707.log"]=>
array(2) {
[0]=>
string(81) "2018-07-07 11:45:49 | NOTICE | 73263 | 5b40376d1067c | 1530935149.68 | log message
"
[1]=>
string(92) "2018-07-07 11:45:49 | NOTICE | 73263 | 5b40376d1067c | 1530935149.68 | log message from neeke
"
}
["/var/log/www/tmp_logger/20180707.log"]=>
array(1) {
[0]=>
string(92) "2018-07-07 11:45:49 | NOTICE | 73263 | 5b40376d1067c | 1530935149.68 | log message from neeke
"
}
}