Add watch_log_file option
Add support for Using logging handler designed to watch file system. Change-Id: Iecc618707d243f9e56acf085c71bb03737bde70c Closes-Bug: #1943212
This commit is contained in:
parent
4fb8e65e21
commit
b86fe3e33e
@ -37,6 +37,10 @@
|
|||||||
# (Optional) File where logs should be stored.
|
# (Optional) File where logs should be stored.
|
||||||
# Defaults to '/var/log/octavia/octavia.log'
|
# Defaults to '/var/log/octavia/octavia.log'
|
||||||
#
|
#
|
||||||
|
# [*watch_log_file*]
|
||||||
|
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
||||||
|
# Defaults to $::os_service_default
|
||||||
|
#
|
||||||
# [*logging_context_format_string*]
|
# [*logging_context_format_string*]
|
||||||
# (Optional) Format string to use for log messages with context.
|
# (Optional) Format string to use for log messages with context.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $::os_service_default
|
||||||
@ -109,6 +113,7 @@ class octavia::logging(
|
|||||||
$log_facility = $::os_service_default,
|
$log_facility = $::os_service_default,
|
||||||
$log_dir = '/var/log/octavia',
|
$log_dir = '/var/log/octavia',
|
||||||
$log_file = '/var/log/octavia/octavia.log',
|
$log_file = '/var/log/octavia/octavia.log',
|
||||||
|
$watch_log_file = $::os_service_default,
|
||||||
$debug = $::os_service_default,
|
$debug = $::os_service_default,
|
||||||
$logging_context_format_string = $::os_service_default,
|
$logging_context_format_string = $::os_service_default,
|
||||||
$logging_default_format_string = $::os_service_default,
|
$logging_default_format_string = $::os_service_default,
|
||||||
@ -133,6 +138,7 @@ class octavia::logging(
|
|||||||
use_stderr => $use_stderr,
|
use_stderr => $use_stderr,
|
||||||
log_dir => $log_dir,
|
log_dir => $log_dir,
|
||||||
log_file => $log_file,
|
log_file => $log_file,
|
||||||
|
watch_log_file => $watch_log_file,
|
||||||
syslog_log_facility => $log_facility,
|
syslog_log_facility => $log_facility,
|
||||||
logging_context_format_string => $logging_context_format_string,
|
logging_context_format_string => $logging_context_format_string,
|
||||||
logging_default_format_string => $logging_default_format_string,
|
logging_default_format_string => $logging_default_format_string,
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The new ``octavia::logging::watch_log_file`` parameter has been added.
|
@ -30,6 +30,7 @@ describe 'octavia::logging' do
|
|||||||
:log_facility => 'LOG_FOO',
|
:log_facility => 'LOG_FOO',
|
||||||
:log_dir => '/var/log',
|
:log_dir => '/var/log',
|
||||||
:log_file => '/var/tmp/octavia_random.log',
|
:log_file => '/var/tmp/octavia_random.log',
|
||||||
|
:watch_log_file => true,
|
||||||
:debug => true,
|
:debug => true,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@ -66,6 +67,7 @@ describe 'octavia::logging' do
|
|||||||
:syslog_log_facility => '<SERVICE DEFAULT>',
|
:syslog_log_facility => '<SERVICE DEFAULT>',
|
||||||
:log_dir => '/var/log/octavia',
|
:log_dir => '/var/log/octavia',
|
||||||
:log_file => '/var/log/octavia/octavia.log',
|
:log_file => '/var/log/octavia/octavia.log',
|
||||||
|
:watch_log_file => '<SERVICE DEFAULT>',
|
||||||
:debug => '<SERVICE DEFAULT>',
|
:debug => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
@ -81,6 +83,7 @@ describe 'octavia::logging' do
|
|||||||
:syslog_log_facility => 'LOG_FOO',
|
:syslog_log_facility => 'LOG_FOO',
|
||||||
:log_dir => '/var/log',
|
:log_dir => '/var/log',
|
||||||
:log_file => '/var/tmp/octavia_random.log',
|
:log_file => '/var/tmp/octavia_random.log',
|
||||||
|
:watch_log_file => true,
|
||||||
:debug => true,
|
:debug => true,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user