Class: Antigravity::Sidecar::AuditLogger
- Defined in:
- lib/antigravity/sidecar.rb
Overview
Async Audit Logger Sidecar
Instance Attribute Summary collapse
-
#log_file ⇒ Object
readonly
Returns the value of attribute log_file.
Attributes inherited from Runner
Instance Method Summary collapse
-
#initialize(log_file = "log/agent_audit.jsonl") ⇒ AuditLogger
constructor
A new instance of AuditLogger.
Methods inherited from Runner
Methods inherited from Base
Methods included from Emojifiable
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.(log_file) FileUtils.mkdir_p(File.dirname(@log_file)) rescue nil super("AuditLoggerSidecar") end |
Instance Attribute Details
#log_file ⇒ Object (readonly)
Returns the value of attribute log_file.
56 57 58 |
# File 'lib/antigravity/sidecar.rb', line 56 def log_file @log_file end |