|
@@ -0,0 +1,48 @@
|
|
|
+# Default Python 3 logging file. This is parsed by `dictConfig()`. See
|
|
|
+# https://docs.python.org/3.5/library/logging.config.html#logging-config-dictschema
|
|
|
+
|
|
|
+version: 1
|
|
|
+disable_existing_loggers: true
|
|
|
+
|
|
|
+formatters:
|
|
|
+ default_fmt:
|
|
|
+ format: "%(asctime)s %(levelname)s %(name)s - %(message)s"
|
|
|
+ extended_fmt:
|
|
|
+ format: "%(asctime)s %(levelname)s %(name)s:%(funcName)s:%(lineno)d - %(message)s"
|
|
|
+
|
|
|
+handlers:
|
|
|
+ logfile:
|
|
|
+ class: logging.handlers.RotatingFileHandler
|
|
|
+ # Change this.
|
|
|
+ filename: /tmp/lakesuperior.log
|
|
|
+ maxBytes: 10485760
|
|
|
+ backupCount: 3
|
|
|
+ formatter: default_fmt
|
|
|
+ level: INFO
|
|
|
+ console:
|
|
|
+ class: logging.StreamHandler
|
|
|
+ stream: ext://sys.stdout
|
|
|
+ formatter: default_fmt
|
|
|
+ level: INFO
|
|
|
+
|
|
|
+loggers:
|
|
|
+ store:
|
|
|
+ qualname: lakesuperior.endpoints
|
|
|
+ handlers: [logfile]
|
|
|
+ level: INFO
|
|
|
+ propagate: no
|
|
|
+ store:
|
|
|
+ qualname: lakesuperior.store_layouts
|
|
|
+ handlers: [logfile]
|
|
|
+ level: INFO
|
|
|
+ propagate: no
|
|
|
+ model:
|
|
|
+ qualname: lakesuperior.model
|
|
|
+ handlers: [logfile]
|
|
|
+ level: INFO
|
|
|
+ propagate: no
|
|
|
+
|
|
|
+root:
|
|
|
+ level: INFO
|
|
|
+ handlers: [console, logfile]
|
|
|
+
|