Add verbosal information in logs for pipen.
Project description
pipen-log2file
Save running logs to file for pipen.
The log file is saved to <workdir>/<pipeline>/.logs/run-<date-time>.log
by default.
A symlink <workdir>/<pipeline>/run-latest.log
is created to the latest log file.
The xqute logs are also saved to <workdir>/<pipeline>/<proc>/proc.xqute.log
Note that the original handler of xqute logger is removed during pipeline running.
Options
plugin_opts.log2file_xqute
: Whether to save xqute logs. Default:True
. if False, the xqute logger will be kept intact.plugin_opts.log2file_xqute_level
: The log level for xqute logger. Default:INFO
.plugin_opts.log2file_xqute_append
: Whether to append to the log file. Default:False
.
Installation
pip install -U pipen-log2file
Enabling/Disabling the plugin
The plugin is registered via entrypoints. It's by default enabled. To disable it:
plugins=[..., "no:log2file"]
, or uninstall this plugin.
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
File details
Details for the file pipen_log2file-0.3.0.tar.gz
.
File metadata
- Download URL: pipen_log2file-0.3.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1038-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1a028c6c80f6238d11cb7eb21f10d198dd6fe476c784891a4ef61ad0671f82 |
|
MD5 | 0af5d22c9a97321c2f6e05bf09b0034e |
|
BLAKE2b-256 | 8b91e3b923c6413d0445e40927d73d4a114241c464ef134e23a2516104209945 |
File details
Details for the file pipen_log2file-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pipen_log2file-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1038-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062ed0476ff3ec9074e757ebd71a44dad9e0108264db22bbf38c38da8b3d844a |
|
MD5 | aaabf07f88be160a99f9962af194112a |
|
BLAKE2b-256 | 65f0264d549abfb8ae3779516a7f3539f468f7bd648042fba9113bd73279c05c |