Skip to main content

A great colored logger!

Project description

BetterLogger

The best option for customizable and simplicity!

Config

All parts of the logger can be configured via environment variables.

Required

  • "APPNAME" - defaults to "BetterLogger"
  • "APPAUTHOR" - defaults to "BetterLogger"
  • "APPVERSION" - defaults to "1.0"
  • "SHORT_APPNAME" - defaults to "BL"

Logging Stuff

  • "LOG_LEVEL" - defaults to 10
  • "LOG_FORMAT" - defaults to "%LEVEL_COLOR[%BOLD{level: <10}]%RESET %LEVEL_COLOR[%BOLD{class_name: <32}]%RESET %LEVEL_COLOR {message}%RESET"

Saving Logs

  • "LOG_SAVE_DIR" - defaults to appdirs.user_log_dir(appname=appname, appauthor=appauthor, version=appversion)
  • "LOG_FILE_NAME_FORMAT" - defaults to "{appname}_{year}-{day}-{hour}-{minute}_{number}.log"
  • "DISABLE_WELCOME_LOGGING" -
    • BetterLogger sends some welcome text to introduce the program and to test the logger welcome logging example
    • defaults to False

Colors

BetterLogger comes with 9 colors, and 2 other text modifiers. There is black, red, green, yellow, blue, magenta, cyan, white, bold and reset. These can be accessed in logging by using the % sign and then writing the color name in all caps and then using the reset code, e.g. e.g. %REDHelloWorld%Reset

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

betterLogger-1.4.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

betterLogger-1.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file betterLogger-1.4.tar.gz.

File metadata

  • Download URL: betterLogger-1.4.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for betterLogger-1.4.tar.gz
Algorithm Hash digest
SHA256 ca70f08268e41dd8b18b2b1d32278511df5c100a35c233654fe900785215a4b1
MD5 6625f5e92b2e9b95cbc62a50a6ce6f2a
BLAKE2b-256 a1c62b7dba84b7fe4ec77cfb33b6afc431bd8338064b3b1a7d05fccb84d956d3

See more details on using hashes here.

File details

Details for the file betterLogger-1.4-py3-none-any.whl.

File metadata

  • Download URL: betterLogger-1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for betterLogger-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1727f010bf8b17df39f61f536ad322741adcaef80643328f1d575a95ad1d5eec
MD5 bf8d46076a8a1efc2c6f531326e2b812
BLAKE2b-256 be52e37a9a1b49fc2473635ad34c12ec51b14596a161dc877593ecb6a3994e23

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