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.7.tar.gz (3.2 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.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamsage_python_logger-0.0.7.tar.gz
Algorithm Hash digest
SHA256 82d0cdc4d61a3ea6ca02b6bf1ee436cbadeae340829c11a546c1902a0e76ec05
MD5 18973f6c8ac7e9520693b2b3c163cbe3
BLAKE2b-256 570d66dd70873c6084623ed05e19c7f192e7ae87422f9a334354429e7b19457e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamsage_python_logger-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4db68ce920013baa3d510e5aadf6ef66b16114cdf2c1bf8f2feaff0f3c79c989
MD5 90bf9328cf04de6b783d985652e9c985
BLAKE2b-256 b0b278ab76602814719f2db98b41a1867d46a6fdcf320915af64973825db17af

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