Method: Roby::Application#log_setup

Defined in:
lib/roby/app.rb

#log_setup(mod_path, level, file = nil) ⇒ Object

Configures a text logger in the system. It has to be called before #setup to have an effect.

It overrides configuration from the app.yml file

For instance,

log_setup 'roby/execution_engine', 'DEBUG'

will be equivalent to having the following entry in config/app.yml:

log:
    levels:
        roby/execution_engine: DEBUG


754
755
756
757
# File 'lib/roby/app.rb', line 754

def log_setup(mod_path, level, file = nil)
    levels = (log_overrides["levels"] ||= {})
    levels[mod_path] = [level, file].compact.join(":")
end