Sha256: 15d3d2e9024ee255b13e3e0b3e6bb8913bff61a63b28956bb5d4883d22944511
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
require "logger" module ModelLog class Logger < ::Logger def initialize(filename) super(File.join(::Rails.root, 'log', filename)) self.level = level self.datetime_format = datetime_format self end private def level ModelLog.config.logger_level end def datetime_format ModelLog.config.logger_datetime_format end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
model_log-2.0.0 | lib/model_log/logger.rb |