Created
September 18, 2012 01:26
-
-
Save vishvananda/3740745 to your computer and use it in GitHub Desktop.
Logging config for nova using a pipe or special syslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[loggers] | |
keys = root | |
[handlers] | |
keys = file, nova_syslog | |
[formatters] | |
keys = legacynova | |
[logger_root] | |
level = DEBUG | |
handlers = file | |
[formatter_legacynova] | |
class = nova.openstack.common.log.LegacyFormatter | |
[handler_file] | |
class = FileHandler | |
args = ('/var/log/nova/pipe',) | |
formatter = legacynova | |
[handler_nova_syslog] | |
class = logging.handlers.SysLogHandler | |
args = ('/dev/novalog', logging.handlers.SysLogHandler.LOG_USER) | |
formatter = legacynova |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_config=/etc/nova/logging.conf | |
logging_context_format_string=%(asctime)s %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s | |
logging_default_format_string=%(asctime)s %(levelname)s %(name)s [-] %(instance)s%(message)s | |
logging_debug_format_suffix=from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d | |
logging_exception_prefix=%(asctime)s TRACE %(name)s %(instance)s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment