Module: CxLog
- Defined in:
- lib/cx_log.rb,
lib/cx_log/log.rb,
lib/cx_log/version.rb,
lib/cx_log/middleware.rb,
lib/cx_log/formatters/json.rb,
lib/cx_log/formatters/key_value.rb
Overview
CxLog module allows you to keep track of events during a request or a background job and then provides the ability to flush the events to a logger.
Defined Under Namespace
Modules: Formatters Classes: Log, Middleware
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
-
.add(**kwargs) ⇒ Object
Your code goes here…
- .clear ⇒ Object
- .flush(logger) ⇒ Object
- .options=(options) ⇒ Object
Class Method Details
.add(**kwargs) ⇒ Object
Your code goes here…
10 11 12 |
# File 'lib/cx_log.rb', line 10 def self.add(**kwargs) Log.add(**kwargs) end |
.clear ⇒ Object
14 15 16 |
# File 'lib/cx_log.rb', line 14 def self.clear Log.clear end |
.flush(logger) ⇒ Object
18 19 20 |
# File 'lib/cx_log.rb', line 18 def self.flush(logger) Log.flush(logger) end |
.options=(options) ⇒ Object
22 23 24 |
# File 'lib/cx_log.rb', line 22 def self.=() Log. = end |