Module: Logtail
- Defined in:
- lib/logtail.rb,
lib/logtail/util.rb,
lib/logtail/event.rb,
lib/logtail/timer.rb,
lib/logtail/config.rb,
lib/logtail/events.rb,
lib/logtail/logger.rb,
lib/logtail/context.rb,
lib/logtail/logtail.rb,
lib/logtail/version.rb,
lib/logtail/contexts.rb,
lib/logtail/log_entry.rb,
lib/logtail/integrator.rb,
lib/logtail/integration.rb,
lib/logtail/log_devices.rb,
lib/logtail/events/error.rb,
lib/logtail/contexts/http.rb,
lib/logtail/contexts/user.rb,
lib/logtail/contexts/system.rb,
lib/logtail/current_context.rb,
lib/logtail/contexts/release.rb,
lib/logtail/contexts/runtime.rb,
lib/logtail/contexts/session.rb,
lib/logtail/events/exception.rb,
lib/logtail/events/sql_query.rb,
lib/logtail/log_devices/http.rb,
lib/logtail/config/integrations.rb,
lib/logtail/events/controller_call.rb,
lib/logtail/events/template_render.rb,
lib/logtail/util/non_nil_hash_builder.rb,
lib/logtail/log_devices/http/request_attempt.rb,
lib/logtail/log_devices/http/flushable_dropping_sized_queue.rb
Defined Under Namespace
Modules: Contexts, Events, Integration, LogDevices, Timer, Util Classes: Config, Context, CurrentContext, Event, Integrator, LogEntry, Logger
Constant Summary collapse
- VERSION =
"0.1.3"
Class Method Summary collapse
-
.config ⇒ Object
Access the main configuration object.
-
.start_timer ⇒ Object
Starts a timer for timing events.
-
.with_context(context, &block) ⇒ Object
Adds context to all logs written within the passed block.
Class Method Details
.config ⇒ Object
Access the main configuration object. Please see {Logtail{Logtail::Config} for more details.
22 23 24 |
# File 'lib/logtail.rb', line 22 def self.config Config.instance end |
.start_timer ⇒ Object
Starts a timer for timing events. Please see {Logtail{Logtail::Logtail{Logtail::Logtail.start} for more details.
27 28 29 |
# File 'lib/logtail.rb', line 27 def self.start_timer Timer.start end |
.with_context(context, &block) ⇒ Object
Adds context to all logs written within the passed block. Please see {Logtail{Logtail::CurrentContext{Logtail::CurrentContext.with} for a more detailed description with examples.
33 34 35 |
# File 'lib/logtail.rb', line 33 def self.with_context(context, &block) CurrentContext.with(context, &block) end |