Skip to main content
Add file logging to Sloth CI apps.

You can customize your logging in a number of ways: set the output dir and filename, set log level and format, toggle and configure log rotation.


Installation
------------

.. code-block:: bash

$ pip install sloth-ci.ext.file_logs


Usage
-----

.. code-block:: yaml
:caption: file_logs.yml

extensions:
logs:
# Use the module sloth_ci.ext.file_logs.
module: file_logs

# Set the log path. Default is the current dir.
path: debug_logs

# Log filename. If not given, the app's listen point is used.
filename: test_debug.log

# Log level (number or valid Python logging level name).
level: DEBUG

# Log format (refer to the https://docs.python.org/3/library/logging.html#logrecord-attributes).
# By default, this format is used:
# format: '%(asctime)s | %(name)30s | %(levelname)10s | %(message)s'

# Make logs rotating. Default is false.
# rotating: true

# If rotating, maximum size of a log file in bytes.
# max_bytes: 500

# If rotating, maximum number or log files to keep.
# backup_count: 10

Metadata

Release files for sloth-ci.ext.file_logs 1.1.3

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

Source distribution (sdist)

Source distribution for sloth-ci.ext.file_logs 1.1.3
File Size Uploaded Provenance
sloth-ci.ext.file_logs-1.1.3.zip 5.2 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for sloth-ci.ext.file_logs 1.1.3
File Interpreter ABI Platform
sloth_ci.ext.file_logs-1.1.3-py3-none-any.whl Python 3 none any Details
sloth-ci.ext.file_logs-1.1.3.win-amd64.exe Details

Total release size: 151.3 kB

Release files / sloth-ci.ext.file_logs-1.1.3.zip

Download URL sloth-ci.ext.file_logs-1.1.3.zip
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b186a4a0b129623b55a95161cf4ef5eff3c55a1631c351c26600dcaf9189c791
BLAKE2b-256 checksum
How to use checksums
b78ceb6084dc8507cbbc5ba22fe9c506b734cbcd1009586e8244b3235b6ed796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sloth_ci.ext.file_logs-1.1.3-py3-none-any.whl

Download URL sloth_ci.ext.file_logs-1.1.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6c55c7301c95db8fced956ecfaa7df1851da4fda40599a0c7c9acfadcfe99c9
BLAKE2b-256 checksum
How to use checksums
2c69fef0bfdc576c329f80c2dedc261699ebf0153716777d2e0919525dc24dd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sloth-ci.ext.file_logs-1.1.3.win-amd64.exe

Download URL sloth-ci.ext.file_logs-1.1.3.win-amd64.exe
Size 141.4 kB
Tags Source
SHA-256 checksum
How to use checksums
06b06a1f83b48e8199e67b7815658b901b4ee376cd676e25f43d74f86c77b9d6
BLAKE2b-256 checksum
How to use checksums
67ca3d08ea2422fc1f3b35148f187082398b83095e887409b7025408e5eb54e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sloth-ci.ext.file_logs 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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