Skip to main content

Simple logger by Artem Bay

Project description

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

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

artembay-logger-0.3.1.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file artembay-logger-0.3.1.tar.gz.

File metadata

  • Download URL: artembay-logger-0.3.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for artembay-logger-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0b0e5946bbc12ab33e46a5f7bb0e4afd5e97542df4bad97a613fb530e0f91739
MD5 823837501f1f78220d9fe157ea231ff5
BLAKE2b-256 65afa349ea8dff2d259ed2234b22cc2e980037e0bce040fe6d646a71405fe2e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page