Sha256: bb0e809b333ba11fb64d60f732680e3120d0935ff1b7b86e7b479df264694ac2
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true require 'logger' require 'traxor/faraday' if defined?(Faraday) require 'traxor/metric' require 'traxor/rack' if defined?(Rack) require 'traxor/rails' if defined?(Rails::Engine) require 'traxor/sidekiq' if defined?(Sidekiq) require 'traxor/tags' require 'traxor/version' module Traxor def self.logger defined?(@logger) ? @logger : initialize_logger end def self.initialize_logger(log_target = STDOUT) @logger = Logger.new(log_target, level: Logger::INFO, progname: name) @logger.formatter = proc do |severity, _time, progname, msg| "[#{progname}] #{severity} : #{msg}\n" end @logger end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
traxor-0.1.18 | lib/traxor.rb |