Skip to main content

A Logging Library for Python

Project description

logsmith

A Logging Library for Python

Install

pip install logsmith

Usage

from logsmith import log

log = log()

log.INFO("Information")
log.WARN("Warning")
log.SUCCESS("Success!")
log.FAILURE("Failed")
log.CRITICAL("Critical")

Run with Configurations

logsmith supports three flags -

ENV [String] Enviroment used for Logging. Takes the name of Environment as String.

console_only [Boolean] Takes value true or false. Logs only to console if set to true.

logfile [String] Takes path of loggingfile as string.

from logsmith import log

log = log()

log.configure(ENV="DEV", logfile="logs", console_only=True)

log.INFO("Information")

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

logsmith-0.0.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

logsmith-0.0.3-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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