Module: AbAdmin::Utils::Logger

Defined in:
lib/ab_admin/utils/logger.rb

Defined Under Namespace

Classes: ExtendedLogger

Class Method Summary collapse

Class Method Details

.for_file(filename) ⇒ Object


16
17
18
19
20
# File 'lib/ab_admin/utils/logger.rb', line 16

def self.for_file(filename)
  logger = ExtendedLogger.new(Rails.root.join('log', filename))
  logger.formatter = ::Logger::Formatter.new
  logger
end