Module: Rex::Logging::LogSink
- Included in:
- Sinks::Flatfile, Sinks::Stderr
- Defined in:
- lib/rex/logging/log_sink.rb
Overview
This abstract interface is what must be implemented by any class that would like to register as a log sink on a given LogDispatcher instance, such as the Framework object.
Instance Method Summary collapse
- #cleanup ⇒ Object
-
#log(sev, src, level, msg, from) ⇒ Object
This method must be implemented by any derived log sink classes and is intended to take the supplied parameters and persist them to an arbitrary medium.
Instance Method Details
#cleanup ⇒ Object
16 17 |
# File 'lib/rex/logging/log_sink.rb', line 16 def cleanup end |
#log(sev, src, level, msg, from) ⇒ Object
This method must be implemented by any derived log sink classes and is intended to take the supplied parameters and persist them to an arbitrary medium.
24 25 26 |
# File 'lib/rex/logging/log_sink.rb', line 24 def log(sev, src, level, msg, from) raise NotImplementedError end |