Add log_file parameter
Change-Id: I6f8aead40646e54c8cca4a43a10ee0a9dcda09d2 Closes-Bug: #1819417
This commit is contained in:
parent
05bf8a78e1
commit
778db279f1
@ -33,6 +33,10 @@
|
||||
# If set to $::os_service_default, it will not log to any directory.
|
||||
# Defaults to '/var/log/heat'
|
||||
#
|
||||
# [*log_file*]
|
||||
# (Optional) File where logs should be stored.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*logging_context_format_string*]
|
||||
# (Optional) Format string to use for log messages with context.
|
||||
# Defaults to $::os_service_default
|
||||
@ -100,6 +104,7 @@ class heat::logging(
|
||||
$use_stderr = $::os_service_default,
|
||||
$log_facility = $::os_service_default,
|
||||
$log_dir = '/var/log/heat',
|
||||
$log_file = $::os_service_default,
|
||||
$debug = $::os_service_default,
|
||||
$logging_context_format_string = $::os_service_default,
|
||||
$logging_default_format_string = $::os_service_default,
|
||||
@ -121,6 +126,7 @@ class heat::logging(
|
||||
log_config_append => $log_config_append,
|
||||
log_date_format => $log_date_format,
|
||||
log_dir => $log_dir,
|
||||
log_file => $log_file,
|
||||
use_syslog => $use_syslog,
|
||||
use_json => $use_json,
|
||||
use_journal => $use_journal,
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add the log_file option for logging.
|
@ -29,6 +29,7 @@ describe 'heat::logging' do
|
||||
:use_stderr => false,
|
||||
:log_facility => 'LOG_FOO',
|
||||
:log_dir => '/var/log',
|
||||
:log_file => '/var/log/heat/heat.log',
|
||||
:debug => true,
|
||||
}
|
||||
end
|
||||
@ -63,6 +64,7 @@ describe 'heat::logging' do
|
||||
:use_journal => '<SERVICE DEFAULT>',
|
||||
:use_stderr => '<SERVICE DEFAULT>',
|
||||
:log_dir => '/var/log/heat',
|
||||
:log_file => '<SERVICE DEFAULT>',
|
||||
:debug => '<SERVICE DEFAULT>',
|
||||
)
|
||||
end
|
||||
@ -77,6 +79,7 @@ describe 'heat::logging' do
|
||||
:use_stderr => false,
|
||||
:syslog_log_facility => 'LOG_FOO',
|
||||
:log_dir => '/var/log',
|
||||
:log_file => '/var/log/heat/heat.log',
|
||||
:debug => true,
|
||||
)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user