This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

While developing a program, have you ever scrolled and scrolled through your progam output looking for a trace buried in hundreds of lines of log? If so, kleverklog is for you.

Klever KLog uses Apache Kafka to store your program log and provides a Kafka client to search, filter and navigate your logs.

Usage

To use Klever KLog, you need a Kafka server. It is easy to setup. You can run one locally, without root privileges. Just follow the quickstart instructions in the Kafka documentation.

Klever KLog supports Python logging and Twisted twisted.logger logging systems. Depending of which one you use, setup is slightly different.

If you use Python logging:

import logging
from kleverklog.python_logging import KafkaHandler

logger = logging.getLogger('your logger name')
logger.setLevel(logging.DEBUG) # or any other level you like
kh = KafkaHandler('localhost:9092')
logger.addHandler(kh)

If you are using twisted.logger:

from kleverklog.twisted_logger import KafkaLogService

KafkaLogService.activate('localhost:9092')

Your program will now send its log entries to Kafka. To view them, start the log viewer in a terminal:

kleverklog all.json

Run your application. The logs should be displayed by Klever KLog, colored by log level.

In the Klever KLog viewer, you can give the following commands:

mPATTERN
Set the match pattern to PATTERN. New log lines containing PATTERN will be highlighted.
rN
Redisplay the last NN log lines, highlighting the ones matching the match pattern.
R
Redisplay the whole log, highlighting the lines matching the match pattern.
p
Pause the log display.
P
Resume the log display.
q
Quit Klever KLog
Release History

Release History

0.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
kleverklog-0.2.0.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Mar 24, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting