Skip to main content

StreamSage Python Logger

Project description

STREAM SAGE PYTHON LOGGER

Log format

[<Date> <Time>][<logLevel>][<context>][<file>:<line>][<LoggerOptionalParams>] <message>

Date format: YYYY-MM-DD
Time format: HH:mm:ss

LoggerOptionalParams exampe:

logger.info("hi", extra={"user": "USER"})

Logger output

[2022-04-15 12:06:34][info][Sample App][samle_file.py:1] Sample LOG message
[2022-04-15 03:06:00][info][Sample App][samle_file.py:1][messageId:some-message-id][domain:message-domain] Sample LOG message with additional params
[2022-04-15 12:06:34][error][Sample App][samle_file.py:1][customer:customer] Sample ERROR message with additional params
[2022-04-15 21:43:36][debug][Sample App][samle_file.py:1][debugLevel:5] Sample Debug message in debug level 5
[2022-04-15 10:20:28][debug][Sample App][samle_file.py:1][debugLevel:2] Sample Debug message in debug level 2

Installation

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

streamsage_python_logger-0.0.14.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

streamsage_python_logger-0.0.14-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file streamsage_python_logger-0.0.14.tar.gz.

File metadata

File hashes

Hashes for streamsage_python_logger-0.0.14.tar.gz
Algorithm Hash digest
SHA256 2d4cf806aa0293382d341d71575a8b3eb6ab0f20ef63d7a6839e16163213d3b0
MD5 8594d844ad78db29c586b3bebe7160bb
BLAKE2b-256 f4d656ef81a77d3de5b473a2fa770f5b8bc35d3b56a6d05d645396eaba0d9ea3

See more details on using hashes here.

File details

Details for the file streamsage_python_logger-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for streamsage_python_logger-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 94b6088e2a9816dfc3ce52e884433ae55b2e1efa7b48582d6567eac9e7747e89
MD5 94e60258b8a8a04bea766cc8ea1da844
BLAKE2b-256 75c33f9fd3d30007b5e944872fafe17722e3219f5d8c27a114d906ff446d51df

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