###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
+#
+# Configures logging via both syslog(3) and stderr, the latter being
+# suitable for a systemd service.
###
[loggers]
keys = root, pgwui_server, pgwui_upload
[handlers]
+# Both syslog and stderr
keys = syslog, console
[formatters]
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
-# These sections don't do anything as given. They are provided so that
-# logging can be customized per pgwui package. You may want to add
-# "propagate = False" lines to avoid duplicate logging if you customize
-# them to emit log messages.
+# These sections don't do anything as given. Because they have no
+# handler they emit no messages. They are provided so that logging
+# can be customized per pgwui package. You may want to add
+# "propagate = False" lines to avoid duplicate logging if you
+# customize them to emit log messages.
[logger_pgwui_server]
level = INFO
# PGWUI components in use. The display value of the menu items can
# be overridden using a "menu_label" setting for each component.
# CAUTION: Do not uncomment the below, instead change the component's
-# "menu_label" setting.
+# "menu_label" setting. E.g.:
#pgwui.pgwui_upload =
# menu_label = upload -- Upload File Into Database
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
+#
+# Emit all logs, and stdout from the application, to stderr.
+# Configured so that logs are viewable from the terminal window used
+# to run pserve.
###
[loggers]
+# See per-component loggers below
keys = root, pgwui_server, pgwui_upload
[handlers]
keys = generic
[logger_root]
-level = INFO
+level = DEBUG
handlers = console
[handler_console]
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
-# These sections don't do anything as given. They are provided so that
-# logging can be customized per pgwui package. You may want to add
-# "propagate = False" lines to avoid duplicate logging if you customize
-# them to emit log messages.
+#
+# Per-component logger configuration
+#
+# These sections don't do anything as given. Because they have no
+# handler they emit no messages. They are provided so that logging
+# can be customized per pgwui package. You may want to add
+# "propagate = False" lines to avoid duplicate logging if you
+# customize them to emit log messages.
[logger_pgwui_server]
level = DEBUG