Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Namespaces | Functions | Variables
buffered_writer.php File Reference

Helper trait buffered_writer. More...

Namespaces

namespace  tool_log\helper
  
 

Functions

 tool_log\helper::dispose ()
 Push any remaining events to the database. More...
 
 tool_log\helper::flush ()
 Flush event buffer.
 
 tool_log\helper::get_config ($name, $default=null)
 Get a config value for the store. More...
 
 tool_log\helper::insert_event_entries ($evententries)
 Bulk write a given array of events to the backend. More...
 
 tool_log\helper::is_event_ignored (\core\event\base $event)
 Should the event be ignored (== not logged)? More...
 
 tool_log\helper::write (\core\event\base $event)
 Write event in the store with buffering. More...
 

Variables

array tool_log\helper::$buffersize
 $buffer buffer size of events.
 
int tool_log\helper::$count = 0
 $count Counter.
 
bool tool_log\helper::$jsonformat = false
 If true, writes JSON instead of PHP serialized data for 'other' field.
 
trait tool_log\helper::buffered_writer
 Helper trait buffered_writer. More...
 

Detailed Description

Helper trait buffered_writer.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later