Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
buffered_writer.php File Reference

Namespaces

namespace  tool_log\helper
 Helper trait buffered_writer.
 

Functions

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

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.