Skip to main content

Logginng Utility for use within Procaaso Python Control Tasks

Project description

procaaso-log

Simple logging library for use with ConSynSys Procaaso ENS, etc. tasks

Usage

  1. Configure the logging backend at the root package within the __init__.py file. Enable all desired module loggers.
import procaaso_log
procaaso_log.standard_config("app.foo", "lib.bar.baz")
  1. Create a logger for each python file.
from procaaso_log import get_logger
logger = get_logger(__name__)
  1. Emit logs.
logger.info("something happened!")
# -> {"event":"incoming!", ...}
logger.info("incoming!", extra="single log context")
# -> {"event":"incoming!","extra"="single log context", ...}
  1. Create a contextual logger.
look_logger = logger.bind(look="over there")
look_logger.info(
# -> {"event":"incoming!","extra"="single log context"}

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

procaaso_log-0.3.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

procaaso_log-0.3.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file procaaso_log-0.3.3.tar.gz.

File metadata

  • Download URL: procaaso_log-0.3.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.11 Windows/10

File hashes

Hashes for procaaso_log-0.3.3.tar.gz
Algorithm Hash digest
SHA256 d208aac859e63f173ca5de950896b2eae3695b6d8bcc2f97e89dd2c1c33f8cd0
MD5 82eec17991d232e80ca13d80316cfa9a
BLAKE2b-256 47ba825b2314a2845dc895bbc1f373fa9ec2f67b9a976d8393abbc838e97c994

See more details on using hashes here.

File details

Details for the file procaaso_log-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: procaaso_log-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.11 Windows/10

File hashes

Hashes for procaaso_log-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5fc571307e22b8394e6145c7a8aaa100c66b3b1033cac10aab47886a0244cd5
MD5 6ccabd4e6443baa56ea01e41e3718b7f
BLAKE2b-256 23b5d977349a5c03d9c55edbdad883e088185d271a5bc4375d99e8c03a6dd723

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