Skip to content

Commit

Permalink
Introduce $nuage_log that logs into log/nuage.log
Browse files Browse the repository at this point in the history
With this commit we introduce yet another global logger
that is to be used by nuage provider. We're having quite
some logs there and it's better to log them into its own
file.

Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
  • Loading branch information
miha-plesko committed Jan 12, 2018
1 parent bdc2779 commit a0f4979
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 @@ -25,6 +25,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 @@ -881,6 +881,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 @@ -99,6 +99,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 @@ -124,6 +125,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 a0f4979

Please sign in to comment.