Class: Msf::MCP::Logging::Sinks::JsonFlatfile
- Inherits:
-
JsonStream
- Object
- JsonStream
- Msf::MCP::Logging::Sinks::JsonFlatfile
- Defined in:
- lib/msf/core/mcp/logging/sinks/json_flatfile.rb
Overview
This class implements the LogSink interface and backs it against a JSON file on disk.
Instance Attribute Summary
Attributes inherited from JsonStream
Instance Method Summary collapse
-
#initialize(file) ⇒ JsonFlatfile
constructor
Creates a JSON flatfile log sink instance that will be configured to log to the supplied file path.
Methods inherited from JsonStream
Methods included from Rex::Logging::LogSink
#cleanup, #get_current_timestamp, #log
Constructor Details
#initialize(file) ⇒ JsonFlatfile
Creates a JSON flatfile log sink instance that will be configured to log to the supplied file path.
17 18 19 |
# File 'lib/msf/core/mcp/logging/sinks/json_flatfile.rb', line 17 def initialize(file) super(File.new(file, 'a')) end |