Skip to main content

a very simple logging library that logs the start and end of a process step and, in particular, indicates the elapsed time.

Project description

start-end-logging

A very simple Python logging library that logs the start and end of a process step and, in particular, indicates the elapsed time.

Example:

import logging
import time

from start_end_logging.start_end_logging import log_start, log_end, init_logging

log = logging.getLogger(__name__)

if __name__ == "__main__":
    init_logging("../logs", "coplanar.log")
    log_start("main process", log)
    log_start("preparing something", log)
    time.sleep(0.15)
    log_end()
    log_start("preparing something other", log)
    time.sleep(0.05)
    log_end()
    time.sleep(0.25)
    log_end()

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

start_end_logging-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

start_end_logging-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file start_end_logging-0.1.1.tar.gz.

File metadata

  • Download URL: start_end_logging-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Windows/10

File hashes

Hashes for start_end_logging-0.1.1.tar.gz
Algorithm Hash digest
SHA256 22a8cf20f15c85f8e3ff0652c51c5c5a154f2fb24da0f79c1aa7988cadb77fba
MD5 fbc4b3c81e119d91aafeddd7e60a3d04
BLAKE2b-256 63b17f5fb46d082f6f9d6168018a8d88703857a7ab2cfcef133f022fbcfb9f62

See more details on using hashes here.

File details

Details for the file start_end_logging-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: start_end_logging-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Windows/10

File hashes

Hashes for start_end_logging-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4354bba1a39b006cb93d2a68e4f5bfef227c30acb778a3aae3f0f88d45c8043
MD5 09ac2efc3ece5dcd71b832442e525a45
BLAKE2b-256 dd90480f489a5c978496a13e7a48403e22fc337071041768f0159e872c1355fc

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