Skip to main content

A Modular and Extensible Logging Framework

Project description

Fluoride

Fluoride is an in-development, unreleased app framework for Python 3 with first-class logging (not the package) support.

Features

  • More log levels available than the native logging module.
  • sys.stdout and sys.stderr are rerouted through fluoride logging, allowing for better handling of error messages and formatting of print statements.
  • Integration with syslog (Linux only) and LogDNA

Installation

user@host:~$ pip3 install fluoride

Usage

The first App registered is used for the rerouting of sys.stdout and sys.stderr.

from fluoride import Level, App

app = App('Fluoride Test')
app.logger.setLevel(Level.FINEST.level)

print('Hello, World!')
app.log(Level.INFO, 'I am Chuck.')
app.log(Level.WARNING, 'There is a chance the world will end soon.')
app.log(Level.FATAL, 'THE WORLD IS ENDING!')

Project details


Download files

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

Files for fluoride, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size fluoride-0.1.0-py3-none-any.whl (8.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size fluoride-0.1.0.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page