skip to navigation
skip to content

logfmt 0.1

Parse log lines in the logfmt style.

Latest Version: 0.2


Python package for parsing log lines in the logfmt style. See the original project by Blake Mizerany and Keith Rarick for information about logfmt conventions and use:

Using logfmt

Easily process lines from logfmt formatted input:

from logfmt import parse

input = StringIO('\n'.join(['key1=value1', 'key2=value2']))
for values in parse(input):
    print values

This program produces this output:

{'key1': 'value1'}
{'key2': 'value2'}


To install it, simply:

pip install logfmt
File Type Py Version Uploaded on Size
logfmt-0.1-py2.py3-none-any.whl (md5) Python Wheel 2.7 2013-06-13 2KB
logfmt-0.1.tar.gz (md5) Source 2013-06-13 2KB