Skip to main content

YAML formatter for the standard Python logging module

Project description



python-yaml-logger is a formatter for the standard Python logging module designed to allow formatting log data as YAML. Using YAML allow for both human- and machine-readable log files, and allows developers to quickly parse and make better use of log data.


Manual installation:

$ wget -O- | tar zx
$ cd python-yaml-logger-master
$ python install


import logging
import yamlformatter

logger = logging.getLogger()
logHandler = logging.FileHandler('my.yamllog')
formatter = yamlformatter.YAMLFormatter()

Example output

- asctime: 2013-04-10 15:39:26,014
  created: 1365604766.014612
  levelname: INFO
  message: test message
  name: logger_name

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 python-yaml-logger, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size python-yaml-logger-0.3.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page