Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipen_log2file-0.8.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

pipen_log2file-0.8.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pipen_log2file-0.8.0.tar.gz.

File metadata

  • Download URL: pipen_log2file-0.8.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1023-azure

File hashes

Hashes for pipen_log2file-0.8.0.tar.gz
Algorithm Hash digest
SHA256 043c76e2c176140f7ed6e6f82a76ddb1df14b218f190c668ac4373c46a105c97
MD5 08b3482edff7929ac0b74b233350825b
BLAKE2b-256 b36ce0acfa6e98ffe7db6ce9aec26fe85b27277deea9e3eb48cf7fb5ec976a51

See more details on using hashes here.

File details

Details for the file pipen_log2file-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: pipen_log2file-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1023-azure

File hashes

Hashes for pipen_log2file-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c38a33e21585bd378e27d033da83e1153a3672305902e26cc533328e607e1b15
MD5 2a6f2053d4a726c72df62bef774b23de
BLAKE2b-256 f57121a75d2b66764a19726ba1af5a4b54fa464069de97db4c421115e4e4210e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page