(PECL seaslog >=1.0.0)
SeasLog::warning — Record warning log information
$message
[, array $content
[, string $logger
]] ) : boolRecord warning log information.
Note:
"WARNING" - �����˷Ǵ����Ե��쳣��Ϣ��DZ���쳣��Ϣ����Ҫ��ע������Ҫ����
message
The log 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::warning() example
<?php
var_dump(SeasLog::warning('log message'));
//with content
var_dump(SeasLog::warning('log message from {NAME}',array('NAME' => 'neeke')));
//with tmp logger
var_dump(SeasLog::warning('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 | WARNING | 73263 | 5b40376d1067c | 1530935149.68 | log message " [1]=> string(92) "2018-07-07 11:45:49 | WARNING | 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 | WARNING | 73263 | 5b40376d1067c | 1530935149.68 | log message from neeke " } }