Class: Antigravity::Sidecar::AuditLogger

Inherits:
Runner
  • Object
show all
Defined in:
lib/antigravity/sidecar.rb

Overview

Async Audit Logger Sidecar

Instance Attribute Summary collapse

Attributes inherited from Runner

#name, #queue, #worker_thread

Instance Method Summary collapse

Methods inherited from Runner

#emit, #start!, #stop!

Methods inherited from Base

inherited

Methods included from Emojifiable

#emoji, included

Constructor Details

#initialize(log_file = "log/agent_audit.jsonl") ⇒ AuditLogger

Returns a new instance of AuditLogger.



58
59
60
61
62
# File 'lib/antigravity/sidecar.rb', line 58

def initialize(log_file = "log/agent_audit.jsonl")
  @log_file = File.expand_path(log_file)
  FileUtils.mkdir_p(File.dirname(@log_file)) rescue nil
  super("AuditLoggerSidecar")
end

Instance Attribute Details

#log_fileObject (readonly)

Returns the value of attribute log_file.



56
57
58
# File 'lib/antigravity/sidecar.rb', line 56

def log_file
  @log_file
end