Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

File logs for Sloth CI apps

Project Description
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
Release History

Release History

This version
History Node

1.1.3

History Node

1.1.0

History Node

1.0.9

History Node

1.0.8

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sloth_ci.ext.file_logs-1.1.3-py3-none-any.whl (4.7 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Feb 21, 2016
sloth-ci.ext.file_logs-1.1.3.win-amd64.exe (141.4 kB) Copy SHA256 Checksum SHA256 any Windows Installer Feb 21, 2016
sloth-ci.ext.file_logs-1.1.3.zip (5.2 kB) Copy SHA256 Checksum SHA256 Source Feb 21, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting