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.1.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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipen_log2file-1.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.14.0-1017-azure

File hashes

Hashes for pipen_log2file-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8e94e6fae1321df7806cbeb85324da968be7dbed09425e0238c0857232afa041
MD5 012c0d84f8f1d2050b0912b1837ac463
BLAKE2b-256 a55e67041b152f06d58fe9b8844bd511ea95258958007b3311a3011a6d385d53

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pipen_log2file-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f24c1e252eb920e89dabf507150398984b610bd02d17335d13e8847d8a34f9
MD5 06819958d527bc9b93a4eb134cc38d48
BLAKE2b-256 074ff131c6541b66ae8ff0547a7a109932f3783ef39f9b68d7f4b18385d9d649

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