class HubLink::SimpleLogger
Public Class Methods
new(output = "hub_link.log")
click to toggle source
# File lib/hub_link/simple_logger.rb, line 3 def initialize(output = "hub_link.log") logger = Logger.new(output) logger.formatter = ->(_, datetime, _, msg) { "#{datetime} - #{msg}\n" } __setobj__(logger) end