Module: Eye::Controller::Options

Included in:
Eye::Controller
Defined in:
lib/eye/controller/options.rb

Instance Method Summary collapse

Instance Method Details

#set_opt_logger(logger_args) ⇒ Object



3
4
5
6
7
8
# File 'lib/eye/controller/options.rb', line 3

def set_opt_logger(logger_args)
  # do not apply logger, if in stdout state
  unless %w[stdout stderr].include?(Eye::Logger.dev)
    Eye::Logger.link_logger(*logger_args)
  end
end

#set_opt_logger_level(level) ⇒ Object



10
11
12
# File 'lib/eye/controller/options.rb', line 10

def set_opt_logger_level(level)
  Eye::Logger.log_level = level
end