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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab942ffd374028628eca3ac11ff030f53f09999801c0d732205de908a46881ff
|
|
| MD5 |
e596c46e6a5006f364f57a6313654f63
|
|
| BLAKE2b-256 |
10c064ddfefc309b68ea11a2567fa95896d433250e140d691c5113c9ba4e39c7
|
Provenance
The following attestation bundles were made for standarted_logger-0.0.6.tar.gz:
Publisher:
python-publish.yml on technomaticsDevTeam/standarted-logger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
standarted_logger-0.0.6.tar.gz -
Subject digest:
ab942ffd374028628eca3ac11ff030f53f09999801c0d732205de908a46881ff - Sigstore transparency entry: 162825223
- Sigstore integration time:
-
Permalink:
technomaticsDevTeam/standarted-logger@9d88078d8563be804593d23ad617490d1f888733 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/technomaticsDevTeam
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9d88078d8563be804593d23ad617490d1f888733 -
Trigger Event:
push
-
Statement type:
File details
Details for the file standarted_logger-0.0.6-py3-none-any.whl.
File metadata
- Download URL: standarted_logger-0.0.6-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b6b8515a6f84f1678a83163a7c0e0d9b0d3b1e75375da4cb11bad676ef3b774
|
|
| MD5 |
8294d58b40f1baf76125c6be3acaf8d7
|
|
| BLAKE2b-256 |
3470b37dc145d0377c85c322e44a690e501715b691fd5c0a447f8747b176f540
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
standarted_logger-0.0.6-py3-none-any.whl -
Subject digest:
6b6b8515a6f84f1678a83163a7c0e0d9b0d3b1e75375da4cb11bad676ef3b774 - Sigstore transparency entry: 162825225
- Sigstore integration time:
-
Permalink:
technomaticsDevTeam/standarted-logger@9d88078d8563be804593d23ad617490d1f888733 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/technomaticsDevTeam
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9d88078d8563be804593d23ad617490d1f888733 -
Trigger Event:
push
-
Statement type: