Skip to main content

No project description provided

Project description

Logger that can be used as a standard logger for various packages in case of further logs parsing

Sample usage

from standarted_logger.logger import Logger
logger = Logger.get_logger("my_module")

logger.info("output_text")

Expected output:

2025-01-14 11:49:19,316 - my_module - INFO - <module> - output_text

Usage with log levels

import logging
from standarted_logger.logger import Logger

logger = Logger.get_logger("my_module", log_level=logging.INFO)
logger.debug("output_text")

This will not print anything, since debug_level is set to INFO. The log level by default is DEBUG.

Logging to file

from standarted_logger.logger import Logger

logger = Logger.get_logger("my_module", log_dir="logs")
logger.debug("output_text")

Will create directory named "logs" at your script folder and a file my_module.log within it

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

standarted_logger-0.0.6.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

standarted_logger-0.0.6-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file standarted_logger-0.0.6.tar.gz.

File metadata

  • Download URL: standarted_logger-0.0.6.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for standarted_logger-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ab942ffd374028628eca3ac11ff030f53f09999801c0d732205de908a46881ff
MD5 e596c46e6a5006f364f57a6313654f63
BLAKE2b-256 10c064ddfefc309b68ea11a2567fa95896d433250e140d691c5113c9ba4e39c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for standarted_logger-0.0.6.tar.gz:

Publisher: python-publish.yml on technomaticsDevTeam/standarted-logger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file standarted_logger-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for standarted_logger-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6b6b8515a6f84f1678a83163a7c0e0d9b0d3b1e75375da4cb11bad676ef3b774
MD5 8294d58b40f1baf76125c6be3acaf8d7
BLAKE2b-256 3470b37dc145d0377c85c322e44a690e501715b691fd5c0a447f8747b176f540

See more details on using hashes here.

Provenance

The following attestation bundles were made for standarted_logger-0.0.6-py3-none-any.whl:

Publisher: python-publish.yml on technomaticsDevTeam/standarted-logger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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