Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwwang/pipen-log2file
Save running logs to file for pipen
https://github.com/pwwang/pipen-log2file
logger
Last synced: 14 days ago
JSON representation
Save running logs to file for pipen
- Host: GitHub
- URL: https://github.com/pwwang/pipen-log2file
- Owner: pwwang
- License: mit
- Created: 2023-04-10T06:00:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-23T22:50:33.000Z (5 months ago)
- Last Synced: 2024-12-13T03:51:30.492Z (21 days ago)
- Topics: logger
- Language: Python
- Homepage:
- Size: 263 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipen-log2file
Save running logs to file for [pipen][1].
The log file is saved to `//.logs/run-.log` by default.
A symlink `//run-latest.log` is created to the latest log file.The xqute logs are also saved to `///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.[1]: https://github.com/pwwang/pipen