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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamsage_python_logger-0.0.17.tar.gz
Algorithm Hash digest
SHA256 540c9efbcaa041c322000a0b3cb18fb74c5ab01ba0702a234bbcb046a4ccd68b
MD5 27ab14af2edcde3a152bbc14ac6d91b0
BLAKE2b-256 1e1c4abd4287dbe03ac80656537d8e3970193a9c9609526cbab7034343d2b760

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamsage_python_logger-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 bd7de1f18294f4af1817b5e99a5317dcbdbc7d23f7a6f7d4d6b0a46071012f17
MD5 bf9449a5286371e58dc3409c381d1045
BLAKE2b-256 3c25ccdddc98bf223c4507f595c83b8ad657cf4343fe2f968674dd86d9cc29fe

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