|
SeasLog::errorRecord error log information 説明
public static bool SeasLog::error(string
$message , array $content = ?, string $logger = ?)Record error log information.
パラメータ
戻り値Return TRUE on record log information success, FALSE on failure. 例例1 SeasLog::error example
<?php 上の例の出力は、 たとえば以下のようになります。 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 | ERROR | 73263 | 5b40376d1067c | 1530935149.68 | log message " [1]=> string(92) "2018-07-07 11:45:49 | ERROR | 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 | ERROR | 73263 | 5b40376d1067c | 1530935149.68 | log message from neeke " } } 参考
|