Erlang :logger handler that captures log events and writes them to the ETS buffer for later flushing to the database.
Runs in the caller's process — stores only raw data to minimize CPU cost. All formatting and metadata extraction is deferred to flush time in BufferServer.