Skip to main content

pytest-single_file_logging

See Build Status on travis-ci Latest PyPi build

Allow for multiple processes to log to a single file


This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.

Features

  • Allows all workers created by xdist to log to the same configuration

Requirements

  • Pytest

  • gevent 1.1+

  • xdist

Installation

You can install “pytest-single_file_logging” via pip from PyPI:

$ pip install pytest-single_file_logging

Usage

A pytest fixture logger is provided by this plugin. Using the fixture is easy:

def test_warning_log(logger):
logger.warning('this is your last warning!')

The standard library logging library is used with the logging configuration pulled from the –logconfig option. The supported format for the configuration file is json and dictconfig. Documentation of dictconfig is located here

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the Apache Software License 2.0 license, “pytest-single_file_logging” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for pytest-single-file-logging 0.1.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pytest-single-file-logging 0.1.18
File Interpreter ABI Platform
pytest_single_file_logging-0.1.18-py3-none-any.whl Python 3 none any Details

Release files / pytest_single_file_logging-0.1.18-py3-none-any.whl

Download URL pytest_single_file_logging-0.1.18-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
616604eb27fa7ca22129c99034637287bb5784b9cd7a78780b948bb8a02a4d9b
BLAKE2b-256 checksum
How to use checksums
ef2a7007b259994ab90c01d40837c8426cf8fe88657d8927cb8ef2b59b8b5760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.18 This release

1 release file

0.1.14

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page