Class: Browserctl::HeaderlessLogDevice
- Inherits:
-
Logger::LogDevice
- Object
- Logger::LogDevice
- Browserctl::HeaderlessLogDevice
- Defined in:
- lib/browserctl/logger.rb
Overview
Returns a stdlib Logger writing JSON-Lines records to ~/.browserctl/logs/<component>.log with size-based rotation. Returns nil (and stays silent) if the directory cannot be created so logging never crashes the daemon. LogDevice that suppresses stdlib’s “# Logfile created on …” header so the resulting file is pure JSON Lines.
Instance Method Summary collapse
Instance Method Details
#add_log_header(_file) ⇒ Object
122 |
# File 'lib/browserctl/logger.rb', line 122 def add_log_header(_file); end |