class SiteHub::Middleware::Logging::LogWrapper
Attributes
logger[R]
Public Class Methods
new(logger)
click to toggle source
# File lib/sitehub/middleware/logging/log_wrapper.rb, line 10 def initialize(logger) @logger = logger end
Public Instance Methods
write(msg)
click to toggle source
# File lib/sitehub/middleware/logging/log_wrapper.rb, line 14 def write(msg) if logger.respond_to?(:<<) logger << msg elsif logger.respond_to?(:write) logger.write(msg) end end