Class: RailsTracepointStack::Logger
- Inherits:
-
Object
- Object
- RailsTracepointStack::Logger
- Defined in:
- lib/rails_tracepoint_stack/logger.rb
Class Method Summary collapse
Class Method Details
.log(msg) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/rails_tracepoint_stack/logger.rb', line 3 def self.log(msg) if RailsTracepointStack.configuration&.logger RailsTracepointStack.configuration.logger.info(msg) else # TODO: Add the support to Rails.env for the default filename File.open("log/rails_tracepoint_stack.log", "a") do |f| f.puts msg end end end |