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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipen_log2file-1.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipen_log2file-1.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for pipen_log2file-1.1.0.tar.gz
Algorithm Hash digest
SHA256 13fa3ed40cf0090130944adeb08ddd0abde74254fe08473e6bd1943e8a76d054
MD5 edf5f64be852c2273415c1c14005d3ff
BLAKE2b-256 d027851ccb3d4fdcfe94d42b7d6badb122251d1ecc48ea33e60608ea72e0dc62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pipen_log2file-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for pipen_log2file-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61cfc92b36a3f3ef934e8e71f9c64c49a0871a82b542af9a997990379cdb42de
MD5 f40dc742bf05f5e0a2d99a3c83840c36
BLAKE2b-256 ab372f55cd95f72be38e649a32be75caa0f61cedb765b1fec0b5e8e988ee1d9d

See more details on using hashes here.

Supported by

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