Skip to main content

File logging for Sloth CI

Project description

File Logging for Sloth CI

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

$ pip install sloth-ci-ext-logs

Usage

extensions:
    logs:
        # Use the module sloth_ci_ext_logs.
        module: 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

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-logs-1.1.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sloth_ci_ext_logs-1.1.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file sloth-ci-ext-logs-1.1.3.tar.gz.

File metadata

  • Download URL: sloth-ci-ext-logs-1.1.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a1 CPython/3.9.6 Windows/10

File hashes

Hashes for sloth-ci-ext-logs-1.1.3.tar.gz
Algorithm Hash digest
SHA256 2cbbaa61f14689099b7ad943fb81fe373a22ba65ebd15f5ba773dd00a4d587e4
MD5 73c7349e479bdb3342e02f086f60cbb3
BLAKE2b-256 9ea33ed8e95abb4c4072f5645f723476f2ad13e792a0945d15e7d8f03210ca3a

See more details on using hashes here.

File details

Details for the file sloth_ci_ext_logs-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: sloth_ci_ext_logs-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a1 CPython/3.9.6 Windows/10

File hashes

Hashes for sloth_ci_ext_logs-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe153d3fff1c5ed823eb5daff47aff5cfecde057d21f892a221a496d8d73309
MD5 91836834887a3c97bedfa6b7958ddc48
BLAKE2b-256 619558915b5952f582f2c53169f09b167ac3303f808e04ffddb9ed9f3e1d4f9c

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