Skip to main content

Nicer python logging in one line

Project description


Nicer python logging in one line

The python logging package from the standard library is awesome and its certainly much better than sprinkling print() statement all over your code. However, even hough setting it up takes just a few lines of code, configuring it to make it look nice across projects, just adds up to doing the same thing over and over.

Therefore, I created logquicky.

Because this is basically just a very simple configuration on the logging module, which also makes it very easy to fall back to it once you decide your project needs more advanced functionalities. However, it hopes to save you some time when quickly building scripts or when getting started in a new project.

Finally, this is also my first (hopefully useful) little OpenSource contribution up on PyPI, so I figured it would be a good exercise.


  • Colored log levels make it easy to identify different levels.
  • Pre-configured formatting of log lines,
  • Optional logging to a log file,
  • Ability to rewrite lines for nicer progress bars etc.
  • Based on Python's logging module.


pip install logquicky


logquicky is supported for python 3.6+ (due to usage of f-strings)

How to use

Basic example

import logquicky

# Add this line to create your logger.
log = logquicky.load('my-logger')

# Start logging!"This is a log message")

See how it looks in action


Logging from multiple files

#!/usr/bin/env python
# --- ---
import logquicky
import other_file

# Creates a new logger and returns it.
log = logquicky.load('my-logger')"I can log from here...")
# --- ---
import logquicky

log = logquicky.load('my-logger')

def run():"And from here as well!")


2019-02-28 12:16:56 my-logger [INFO] I can log from here...
2019-02-28 12:16:56 my-logger [INFO] And from here as well!

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 logquicky, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size logquicky-0.0.5-py3-none-any.whl (17.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size logquicky-0.0.5.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page