add use_journal if we are enabling systemd
This is going to be a new option in oslo.log, which we can start setting early to make it take effect. Change-Id: If0e5e4717a1810c759058f33608fbac7543f2d85
This commit is contained in:
parent
def07b21f8
commit
5cd44dbe6c
12
functions
12
functions
@ -606,11 +606,13 @@ function setup_colorized_logging {
|
||||
function setup_systemd_logging {
|
||||
local conf_file=$1
|
||||
local conf_section="DEFAULT"
|
||||
local project_var="project_name"
|
||||
local user_var="user_name"
|
||||
iniset $conf_file $conf_section logging_context_format_string "%(levelname)s %(name)s [%(request_id)s %("$project_var")s %("$user_var")s] %(instance)s%(message)s"
|
||||
iniset $conf_file $conf_section logging_default_format_string "%(levelname)s %(name)s [-] %(instance)s%(color)s%(message)s"
|
||||
iniset $conf_file $conf_section logging_debug_format_suffix "from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d"
|
||||
iniset $conf_file $conf_section use_journal "True"
|
||||
iniset $conf_file $conf_section logging_context_format_string \
|
||||
"%(levelname)s %(name)s [%(request_id)s %(project_name)s %(user_name)s] %(instance)s%(message)s"
|
||||
iniset $conf_file $conf_section logging_default_format_string \
|
||||
"%(levelname)s %(name)s [-] %(instance)s%(color)s%(message)s"
|
||||
iniset $conf_file $conf_section logging_debug_format_suffix \
|
||||
"from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d"
|
||||
iniset $conf_file $conf_section logging_exception_prefix "ERROR %(name)s %(instance)s"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user