diff --git a/manifests/logging.pp b/manifests/logging.pp index 755d974..d8f2d99 100644 --- a/manifests/logging.pp +++ b/manifests/logging.pp @@ -39,6 +39,10 @@ # (Optional) File where logs should be stored. # Defaults to $::os_service_default # +# [*watch_log_file*] +# (Optional) Uses logging handler designed to watch file system (boolean value). +# Defaults to $::os_service_default +# # [*logging_context_format_string*] # (Optional) Format string to use for log messages with context. # Defaults to $::os_service_default @@ -107,6 +111,7 @@ class vitrage::logging( $log_facility = $::os_service_default, $log_dir = '/var/log/vitrage', $log_file = $::os_service_default, + $watch_log_file = $::os_service_default, $debug = $::os_service_default, $logging_context_format_string = $::os_service_default, $logging_default_format_string = $::os_service_default, @@ -131,6 +136,7 @@ class vitrage::logging( use_stderr => $use_stderr, log_dir => $log_dir, log_file => $log_file, + watch_log_file => $watch_log_file, syslog_log_facility => $log_facility, logging_context_format_string => $logging_context_format_string, logging_default_format_string => $logging_default_format_string, diff --git a/releasenotes/notes/add_watch_log_file-option-b4a83a637e3c3438.yaml b/releasenotes/notes/add_watch_log_file-option-b4a83a637e3c3438.yaml new file mode 100644 index 0000000..2e8028e --- /dev/null +++ b/releasenotes/notes/add_watch_log_file-option-b4a83a637e3c3438.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``vitrage::logging::watch_log_file`` parameter has been added. diff --git a/spec/classes/vitrage_logging_spec.rb b/spec/classes/vitrage_logging_spec.rb index 51e0ac8..63ce5c9 100644 --- a/spec/classes/vitrage_logging_spec.rb +++ b/spec/classes/vitrage_logging_spec.rb @@ -30,6 +30,7 @@ describe 'vitrage::logging' do :log_facility => 'LOG_FOO', :log_dir => '/var/log', :log_file => '/var/log/vitrage.log', + :watch_log_file => true, :debug => true, } end @@ -66,6 +67,7 @@ describe 'vitrage::logging' do :syslog_log_facility => '', :log_dir => '/var/log/vitrage', :log_file => '', + :watch_log_file => '', :debug => '', ) end @@ -81,6 +83,7 @@ describe 'vitrage::logging' do :syslog_log_facility => 'LOG_FOO', :log_dir => '/var/log', :log_file => '/var/log/vitrage.log', + :watch_log_file => true, :debug => true, ) end