pub fn write_log_entry(entry: &LogEntry<'_>)
Write a JSON log line to the configured log file. Errors are printed to stderr but never block the hook.