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.2.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pipen_log2file-0.2.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipen_log2file-0.2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure

File hashes

Hashes for pipen_log2file-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5ea2fbae71bca0b7f9c60419298bfd255ff21a1b217552efc91b4c17cd4779ce
MD5 f5f33c210fe1b294b403ac8d8c654ced
BLAKE2b-256 f2b53d9ac34b92ca32e491fe8e24b5acc40d73b66d01f924429d845b0b01af00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pipen_log2file-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure

File hashes

Hashes for pipen_log2file-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ba84e7915cfcba6e4f2c4bc11e2c18ace1ed9a6aeb535cc3ebf7aa78ac5038e
MD5 5fc01359060645e7f7f4abef339c966f
BLAKE2b-256 91db930640efc6c86892ffc6f892a035dab70cde91b58e10f792b6df9fdaa6d8

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