Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
465 changes: 465 additions & 0 deletions plugins/module_utils/common/log.py

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions plugins/module_utils/logging_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
Comment thread
mikewiebe marked this conversation as resolved.
"version": 1,
"formatters": {
"standard": {
"class": "logging.Formatter",
"format": "%(asctime)s - %(levelname)s - [%(name)s.%(funcName)s.%(lineno)d] %(message)s"
}
},
"handlers": {
"file": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "standard",
"level": "DEBUG",
"filename": "/tmp/nd.log",
"mode": "a",
"encoding": "utf-8",
"maxBytes": 50000000,
"backupCount": 4
}
},
"loggers": {
"nd": {
"handlers": [
"file"
],
"level": "DEBUG",
"propagate": false
}
},
"root": {
"level": "INFO",
"handlers": [
"file"
]
}
}
Empty file added tests/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions tests/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modules:
# Limit Python version to control node Python versions
python_requires: controller
Empty file added tests/unit/__init__.py
Empty file.
Empty file.
Loading
Loading