array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'seaslog.getbuffer.php', 1 => 'SeasLog::getBuffer', 2 => 'Get the logs buffer in memory as array', ), 'up' => array ( 0 => 'class.seaslog.php', 1 => 'SeasLog', ), 'prev' => array ( 0 => 'seaslog.getbasepath.php', 1 => 'SeasLog::getBasePath', ), 'next' => array ( 0 => 'seaslog.getbufferenabled.php', 1 => 'SeasLog::getBufferEnabled', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/seaslog/seaslog/getbuffer.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL seaslog >=1.0.0)
SeasLog::getBuffer — Get the logs buffer in memory as array
Bu işlevin bağımsız değişkeni yoktur.
Return an array from logs buffer in memory.
Örnek 1 SeasLog::getBuffer() example
<?php
var_dump(SeasLog::info('info log'));
var_dump(SeasLog::debug('debug log'));
var_dump(SeasLog::getBuffer());
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
bool(true)
bool(true)
array(1) {
["/var/log/www/default/20180707.log"]=>
array(2) {
[0]=>
string(79) "2018-07-07 10:43:32 | INFO | 71785 | 5b4028d4c58d5 | 1530931412.810 | info log
"
[1]=>
string(81) "2018-07-07 10:43:32 | DEBUG | 71785 | 5b4028d4c58d5 | 1530931412.810 | debug log
"
}
}