Module: Marcopolo
- Defined in:
- lib/marcopolo.rb,
lib/marcopolo/rails.rb,
lib/marcopolo/version.rb,
lib/marcopolo/middleware.rb
Defined Under Namespace
Classes: Marco, Middleware
Constant Summary
collapse
- DEFAULT_LOGGER =
Logger.new($stdout)
- DEFAULT_OPTIONS =
{
logger: DEFAULT_LOGGER,
severity: Logger::Severity::DEBUG
}
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.log(msg) ⇒ Object
17
18
19
|
# File 'lib/marcopolo.rb', line 17
def log(msg)
options[:logger].add(options[:severity]) { msg }
end
|
.options ⇒ Object
13
14
15
|
# File 'lib/marcopolo.rb', line 13
def options
@@options ||= DEFAULT_OPTIONS.clone
end
|