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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipen_log2file-0.4.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure

File hashes

Hashes for pipen_log2file-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ecf44114ae88a03c5c79a4ad583be0a69ec34ae9b7feebb77b787de708e68e75
MD5 29e5eb7920d8fce6fdead46cbe0bf8a5
BLAKE2b-256 7714890b6e45e06f4c5a63d73d3184bc067576bbf38bf6788be5c232f35412ae

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pipen_log2file-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb17d3492a08404f481bfb5fceeea023bc9d7c3a485db8ac331b0e61af6facb
MD5 87c0576242174cf0f90c534027cbc298
BLAKE2b-256 d2b087a472f81b4d5e3659d692678735e5eeb0e9f724e14baa06ce87fa3d81b2

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