(PECL seaslog >=1.0.0)
SeasLog::notice — ��¼ notice ��־
$message
[, array $content
[, string $logger
]] ) : bool��¼ notice ��־��
Note:
"NOTICE" - һ����Ҫ���¼���ִ�й����н� INFO �����Ϊ��Ҫ����Ϣ��
message
��־����Ϣ
content
"��Ϣ"����ռλ����ʵ���� content �����е�ֵ�滻��Щռλ���� ����'��Ϣ'�� `log info from {NAME}`, '����'�� `array('NAME' => neeke)`�� ��־��Ϣ�� `log info from neeke`
logger
���������� SeasLog::setLogger() ʱ��������ʱ logger һ�����ڵ�����������ʹ�����"logger"�� ��� `logger` Ϊ NULL �� ""����ô SeasLog ��ʹ����SeasLog::setLogger()���õ����� Logger��
��¼��־��Ϣ�ɹ����� TRUE��ʧ�ܷ��� FALSE��
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());
?>
�������̵���������ڣ�
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 " } }