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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sloth-ci-ext-logs-1.1.3.tar.gz.
File metadata
- Download URL: sloth-ci-ext-logs-1.1.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a1 CPython/3.9.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cbbaa61f14689099b7ad943fb81fe373a22ba65ebd15f5ba773dd00a4d587e4
|
|
| MD5 |
73c7349e479bdb3342e02f086f60cbb3
|
|
| BLAKE2b-256 |
9ea33ed8e95abb4c4072f5645f723476f2ad13e792a0945d15e7d8f03210ca3a
|
File details
Details for the file sloth_ci_ext_logs-1.1.3-py3-none-any.whl.
File metadata
- Download URL: sloth_ci_ext_logs-1.1.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a1 CPython/3.9.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe153d3fff1c5ed823eb5daff47aff5cfecde057d21f892a221a496d8d73309
|
|
| MD5 |
91836834887a3c97bedfa6b7958ddc48
|
|
| BLAKE2b-256 |
619558915b5952f582f2c53169f09b167ac3303f808e04ffddb9ed9f3e1d4f9c
|