Skip to main content

File logs for Sloth CI apps

Project description

Sloth CI extension that adds a file logger (can be rotating and timed rotating) to Sloth CI apps.

Formerly known as “sloth-ci.ext.logs.”

Extension params:

# 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, slug of the app's listen point will be used.
filename: test_debug.log

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

# Log format (refer to the Python logging module documentation). The default value is given below.
# 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

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

sloth-ci.ext.file_logs-1.1.0.zip (4.8 kB view hashes)

Uploaded Source

Built Distributions

sloth_ci.ext.file_logs-1.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

sloth-ci.ext.file_logs-1.1.0.win-amd64.exe (89.1 kB view hashes)

Uploaded Source

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