fluoride

A Modular and Extensible Logging Framework


Keywords
log, logging, framework, python, python3
License
MIT
Install
pip install fluoride==0.1.0

Documentation

Fluoride

Fluoride is a WIP logging framework for Python 3.

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!')