class PumaDoctor::Logger
Public Class Methods
new(options = {})
click to toggle source
# File lib/puma_doctor/logger.rb, line 5 def initialize(options = {}) @logger = ::Logger.new(options[:log_file]) @logger.level = options[:log_level] || ::Logger::INFO end
Public Instance Methods
info(text)
click to toggle source
# File lib/puma_doctor/logger.rb, line 10 def info(text) @logger.info(text) end
log_start()
click to toggle source
# File lib/puma_doctor/logger.rb, line 18 def log_start @logger.info "[Puma Doctor] Starting..." end
warn(text)
click to toggle source
# File lib/puma_doctor/logger.rb, line 14 def warn(text) @logger.warn(text) end