We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fc47e commit 758cd25Copy full SHA for 758cd25
docker/netbox/configuration/logging.py
@@ -1,3 +1,21 @@
1
+from os import environ
2
+
3
+LOGGING = {
4
+ 'version': 1,
5
+ 'disable_existing_loggers': False,
6
+ 'handlers': {
7
+ 'console': {
8
+ 'class': 'logging.StreamHandler',
9
+ },
10
11
+ 'loggers': {
12
+ '': { # root logger
13
+ 'handlers': ['console'],
14
+ 'level': 'DEBUG' if environ.get('DEBUG', 'false').lower() == 'true' else 'INFO',
15
16
17
+}
18
19
# # Remove first comment(#) on each line to implement this working logging example.
20
# # Add LOGLEVEL environment variable to netbox if you use this example & want a different log level.
21
# from os import environ
0 commit comments