Skip to main content

Simple Timed logger, it write logs to terminal. Can write elapsed time between logs

Project description

Simple Timed Logger

It's logging package for very basic log messages.

It has 5 levels of logs (DEBUG, INFO, WARNING, ERROR, CRITICAL). By using unique keys, it is possible to measure elapsed time between 2 log messages

Logging is done by these methods:

  • log()
  • debug()
  • info()
  • warning()
  • error()
  • critical()

log() method can be set to log message on any level.

All logging methods take these keyword arguments:

  • timed - (True/False) Is log message timed
  • key - Unique key for timed log message. Use this key to stop logging and print out elapsed time.

If key is not provided for timed logging, it will be automatically generated. To stop timed logging, use stop_timed_log() method. By passing key of log timer you want to stop. If no key is given, it will stop last started timed log.

using basic_config() it is possible to configure what lowest level of log messages will be printed to terminal

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

simpletimedlogger-2.0.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpletimedlogger-2.0.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file simpletimedlogger-2.0.1.tar.gz.

File metadata

  • Download URL: simpletimedlogger-2.0.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for simpletimedlogger-2.0.1.tar.gz
Algorithm Hash digest
SHA256 2d154cd15625eef4959eaac1ceda4a8b39671a5914251bfb42f64aabd262e8c7
MD5 4144702c0a73b58478c86b478ace2796
BLAKE2b-256 40257f1f2b638001fcb551939fbe02e1612a4b1583b4e3047b4774addb9f1443

See more details on using hashes here.

File details

Details for the file simpletimedlogger-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simpletimedlogger-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72f6e0a7183738778677dd4b03eda753b2b098abc7c5819f2f0964c60689fe66
MD5 da742a4db03a88ee0a0558f1badf154b
BLAKE2b-256 fad100f5cf5741e48269e67e4a3e70d2cc3b87bce0c58a9224f8dc685e1f02e4

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