Sha256: c5bc9944866fdc040a5a97ee00cf3e6aa37add01fcc6681c50a3523b42aff653
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
require "logger" # Attempt to require Rails. We can not list it as a gem # dependency because we want to support multiple frameworks. require("rails") rescue LoadError if defined?(Rails) require 'timber/frameworks/rails' end module Timber module Frameworks def self.logger(logdev) if defined?(Timber::Frameworks::Rails) Rails.logger(logdev) else ::Logger.new(logdev) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/frameworks.rb |