File logging for Sloth CI
Project description
File Logging for Sloth CI
You can customize your logging in a number of ways: set the output dir and filename, set log level and format, toggle and configure log rotation.
Installation
$ pip install sloth-ci-ext-logs
Usage
extensions:
logs:
# Use the module sloth_ci_ext_logs.
module: logs
# Set the log path. Default is the current dir.
path: debug_logs
# Log filename. If not given, the app's listen point is used.
filename: test_debug.log
# Log level (number or valid Python logging level name).
level: DEBUG
# Log format (refer to the https://docs.python.org/3/library/logging.html#logrecord-attributes).
# By default, this format is used:
# format: '%(asctime)s | %(name)30s | %(levelname)10s | %(message)s'
# Make logs rotating. Default is false.
# rotating: true
# If rotating, maximum size of a log file in bytes.
# max_bytes: 500
# If rotating, maximum number or log files to keep.
# backup_count: 10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sloth_ci_ext_logs-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe153d3fff1c5ed823eb5daff47aff5cfecde057d21f892a221a496d8d73309 |
|
MD5 | 91836834887a3c97bedfa6b7958ddc48 |
|
BLAKE2b-256 | 619558915b5952f582f2c53169f09b167ac3303f808e04ffddb9ed9f3e1d4f9c |