|
SeasLog::flushBufferFlush logs buffer, dump to appender file, or send to remote api with tcp/udp 説明
public static bool SeasLog::flushBuffer()
Flush logs buffer by seaslog.appender: dump to file, or send to remote api with tcp/udp.
パラメータこの関数にはパラメータはありません。 戻り値Return TRUE on flush buffer success, FALSE on failure. 例例1 SeasLog::flushBuffer example 上の例の出力は、 たとえば以下のようになります。
array(1) {
["/var/log/www/default/20180707.log"]=>
array(2) {
[0]=>
string(79) "2018-07-07 10:47:58 | INFO | 71910 | 5b4029ded6009 | 1530931678.877 | info log
"
[1]=>
string(81) "2018-07-07 10:47:58 | DEBUG | 71910 | 5b4029ded6009 | 1530931678.877 | debug log
"
}
}
bool(true)
array(0) {
}
参考
|