You will want to place the different logging options in the
[DEFAULT] section in your
application configuration file. As an example, you might do the
following for the API server, in a configuration file called
etc/glance-api.conf:
[DEFAULT] log_file = /var/log/glance/api.log
log_file
The filepath of the file to use for logging messages from
Glance's servers. If missing, the default is to output messages
to stdout, so if you are running Glance
servers in a daemon mode (using
glance-control) you should make sure that the
log_file option is set appropriately.
log_dir
The filepath of the directory to use for log files. If not
specified (the default) the log_file is used
as an absolute filepath.
log_date_format
The format string for timestamps in the log output.
Defaults to %Y-%m-%d %H:%M:%S. See the
logging
module documentation for more information on setting
this format string.
