Skip to content

Commit

Permalink
Merge pull request #16455 from miha-plesko/nuage-logger
Browse files Browse the repository at this point in the history
Introduce $nuage_log that logs into log/nuage.log
  • Loading branch information
carbonin authored Feb 9, 2018
2 parents 6056dc8 + a0f4979 commit 2099b3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rubocop_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ GlobalVars:
- $vcloud_log
- $vim_log
- $websocket_log
- $nuage_log
Rails/Exit:
Exclude:
- lib/workers/bin/*
Expand Down
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@
:level_vim: warn
:level_websocket: info
:level_vcloud: info
:level_nuage: info
:ntp:
:server:
- 0.pool.ntp.org
Expand Down
2 changes: 2 additions & 0 deletions lib/vmdb/loggers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def self.apply_config(config)
apply_config_value(config, $lenovo_log, :level_lenovo)
apply_config_value(config, $websocket_log, :level_websocket)
apply_config_value(config, $vcloud_log, :level_vcloud)
apply_config_value(config, $nuage_log, :level_nuage)
end

def self.create_loggers
Expand All @@ -122,6 +123,7 @@ def self.create_loggers
$websocket_log = create_multicast_logger(path_dir.join("websocket.log"))
$miq_ae_logger = create_multicast_logger(path_dir.join("automation.log"))
$vcloud_log = create_multicast_logger(path_dir.join("vcloud.log"))
$nuage_log = create_multicast_logger(path_dir.join("nuage.log"))

configure_external_loggers
end
Expand Down

0 comments on commit 2099b3e

Please sign in to comment.