Skip to main content

Plain Logger is a simple logger library for python

Example: logger = Logger(logger_folder="my_logs_folder", include_time = True, include_level = True) logger.log(msg="Cannot divided by zero", logger_level=Logger.ERROR) [00:58:41] [ERROR] Cannot divided by zero

Logger Class Params: logger_folder : string -> the name of the folder where the log files will be saved include_time : boolean -> if time is included included_level : boolean -> if the level is included for example [INFO] or [WARN]

Logger Class Methods: log(msg, LoggerLevel)

The logger class includes 3 Built-in Logger Level: ERROR WARN INFO

You can also make your own logger levels success_level = LoggerLevel(name="SUCCESS", color="\033[1;32m\033[1m") Logger.log(msg="Worked", LoggerLevel=success_level)

ANSI color codes for python: BLACK = "\033[0;30m" RED = "\033[0;31m" GREEN = "\033[0;32m" BROWN = "\033[0;33m" BLUE = "\033[0;34m" PURPLE = "\033[0;35m" CYAN = "\033[0;36m" LIGHT_GRAY = "\033[0;37m" DARK_GRAY = "\033[1;30m" LIGHT_RED = "\033[1;31m" LIGHT_GREEN = "\033[1;32m" YELLOW = "\033[1;33m" LIGHT_BLUE = "\033[1;34m" LIGHT_PURPLE = "\033[1;35m" LIGHT_CYAN = "\033[1;36m" LIGHT_WHITE = "\033[1;37m" BOLD = "\033[1m" FAINT = "\033[2m" ITALIC = "\033[3m" UNDERLINE = "\033[4m" BLINK = "\033[5m" NEGATIVE = "\033[7m" CROSSED = "\033[9m" END = "\033[0m"

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vitalogger-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

vitalogger-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file vitalogger-0.1.2.tar.gz.

File metadata

  • Download URL: vitalogger-0.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vitalogger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0c7040e054c412317862feafde87ff6ae4d380e7063cfe234c9b0fbc5bb21ab4
MD5 c243a89cfdaee27b09fe5371f3efd201
BLAKE2b-256 450469e1c69fa5b89c05c4a8f505bcc9febbc807884ef96efb3a65c68de197ec

See more details on using hashes here.

File details

Details for the file vitalogger-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: vitalogger-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vitalogger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1481666bd72a173613b657d55125319bbd264909c89aafea6c8fc0fd8102711
MD5 e46fbeffb587dc824ff33304194f4ee9
BLAKE2b-256 1b265e6e2c7fb4198bbb0c66699b701b853e449ad1d6ef89f4c5083e6fc34327

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 Sentry Error logging StatusPage Status page