Module: Heroku::Scalr
Defined Under Namespace
Modules: Metric Classes: App, CLI, Config, Runner
Instance Method Summary collapse
- #configure(opts = {}) ⇒ Object
-
#logger ⇒ Logger
The logger instance.
- #run!(*args) ⇒ Object
Instance Method Details
#configure(opts = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/heroku/scalr.rb', line 18 def configure(opts = {}) @logger = Logger.new(opts[:log_file]) if opts[:log_file] logger.level = opts[:log_level] if opts[:log_level] self end |