Skip to main content

module for faster python logging

Project description

Summary

This is a python module that provides a way to run a fast logger. Peregrine Falcons are the fastest animals alive (according to Google). They go that fast by having as minimal drag as possible.

Sample code

see sample.py for a full example

from falcon_logger import FalconLogger

Sample

Use doit script to run the logger and compare against other loggers.

To run the FalconLogger:

./doit falcon
./doit falcon --numlines=100000

To run the others loggers:

./doit stdout  # no file, just stdout
./doit normal  # use the python logger
./doit rsyslog # use the rsyslog python module

Comparing Times

The overall time is very dependent on which OS you use and the speed of your computer

on MSYS2 for 100,000 lines:
stdout: total time: 3170.0 ms
falcon: total time: 3623.9 ms
normal: total time: 5722.8 ms
rsyslog fails with an exception 

Project details


Download files

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

Source Distribution

falcon_logger-0.0.5.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file falcon_logger-0.0.5.tar.gz.

File metadata

  • Download URL: falcon_logger-0.0.5.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for falcon_logger-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f01d7b2c79465872d7f53d13093f7647d82d0efb984b44d063a86980eee6c149
MD5 12dc81d80ff03a1cf15c0a7743c6b8bb
BLAKE2b-256 c4ce362d53caa4842a5db67c5b99dc203fa621cb22a297f46b93976a88d7406c

See more details on using hashes here.

Supported by

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