Skip to main content

konsole: readable, pleasing console output

Project description

konsole: readable, pleasing console output

konsole is a simple logger built on top of Python's logging framework that prints to standard error and, if the underlying terminal is amenable, does so with the judicious use of bold and light type as well as a dash of color. This package's interface stands on its own, no experience or direct interaction with logging required. At the same time, this package plays equally well with other loggers, just leave konsole 🙄 console output to it.

To use konsole, your application should invoke the init() function as soon as possible during startup, preferably before executing other application code. If it instead invokes any of the other functions in konsole's public API — set_color(), set_level(), logger(), critical(), error(), warning(), info(), debug(), or redirect() — konsole implicitly invokes init() to ensure proper initialization of its logging handler and formatter. Keep in mind that delaying konsole's initialization that way also increases the likelihood of some component writing to the log without the benefits of konsole's formatting.


© 2022 Robert Grimm. Code released under Apache 2.0 license.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

konsole-0.1.0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page