Skip to main content

Just another logger for python

This logger has been writen by Artem Bay. Can used in any project

main.py:

from artembay_logger import Logger

if __name__ == "__main__":
    logger = Logger(log_file="log.txt", log_level=3, log_timezone="Europe/Moscow", log_colors=True)
    logger.info(f"All log levels will writen in file but print only selectd and lower Now log level is {logger.log_level} \n")
    logger.debug("Debug [Log level 1]")
    logger.info("Info [Log level 2]")
    logger.warning("Warning [Log level 3]")
    logger.error("Error [Log level 4]")
    logger.critical("Critical [Log level 5]")

log.txt:

2022-11-03 05:21:52 |INFO    | All log levels will writen in file but print only selectd and lower Now log level is 3 
 
2022-11-03 05:21:52 |DEBUG   | Debug [Log level 1] 
2022-11-03 05:21:52 |INFO    | Info [Log level 2] 
2022-11-03 05:21:52 |WARNING | Warning [Log level 3] 
2022-11-03 05:21:52 |ERROR   | Error [Log level 4] 
2022-11-03 05:21:52 |CRITICAL| Critical [Log level 5] 

Dm me in discord for help. Artem Bay#0547

Made with ❤️ by Artem Bay and Github Copilot

Metadata

Release files for artembay-logger 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for artembay-logger 0.3.1
File Size Uploaded
artembay-logger-0.3.1.tar.gz 1.9 kB Details

Release files / artembay-logger-0.3.1.tar.gz

Download URL artembay-logger-0.3.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0b0e5946bbc12ab33e46a5f7bb0e4afd5e97542df4bad97a613fb530e0f91739
BLAKE2b-256 checksum
How to use checksums
65afa349ea8dff2d259ed2234b22cc2e980037e0bce040fe6d646a71405fe2e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page