Class: Statistrano::Log
- Inherits:
-
Object
- Object
- Statistrano::Log
- Extended by:
- SingleForwardable
- Defined in:
- lib/statistrano/log.rb,
lib/statistrano/log/default_logger.rb
Overview
interface should match the ruby logger so we will implement:
> fatal
> error
> warn
> info
> debug
note that DefaultLogger does accept multiline logs as *args so you will need a wrapper for some logging libraries
Defined Under Namespace
Classes: DefaultLogger
Class Method Summary collapse
Class Method Details
.logger_instance ⇒ Object
27 28 29 |
# File 'lib/statistrano/log.rb', line 27 def logger_instance @_logger ||= DefaultLogger.new end |
.set_logger(logger) ⇒ Object
23 24 25 |
# File 'lib/statistrano/log.rb', line 23 def set_logger logger @_logger = logger end |