Module: Telemetry::Logger
- Extended by:
- Builder, Defaults, ExceptionHandler, Methods
- Defined in:
- lib/telemetry/logger.rb,
lib/telemetry/logger/builder.rb,
lib/telemetry/logger/methods.rb,
lib/telemetry/logger/version.rb,
lib/telemetry/logger/defaults.rb,
lib/telemetry/logger/exception_handler.rb
Defined Under Namespace
Modules: Builder, Defaults, ExceptionHandler, Methods
Constant Summary collapse
- VERSION =
'0.2.0'.freeze
Class Method Summary collapse
Methods included from ExceptionHandler
elastic_apm?, exception, open_telemetry?, send_to_apm
Methods included from Builder
format, level, log, log_level=, opts, output
Methods included from Methods
colorize, debug, error, fatal, info, thread, unknown, warn
Methods included from Defaults
app_version, application, env_prefix, opts, socket_hostname
Class Method Details
.setup(level: 'info', **opts) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/telemetry/logger.rb', line 15 def setup(level: 'info', **opts) @opts = opts output(**opts) self.log_level = level self end |