Skip to main content

A utility plugin, allowing you to set custom logging levels with colors and microsecond precision

Project description

MLogger:

So im going to be honest with you, this is a SUPPPERRRR basic utility. It does not need to be a python package. Its only like 80 lines of code, however it is tremendously helpful, i use it in a bunch of my own projects, and now it needs to be publically available instead of locally available, so that other people can run my code.

With that being said, here is the 'Extensive' list of features.

init(level:LogLevel, logMs:boolean=True, logSender:boolean=True)

  • Creates the log class
  • You should note, the level set is the lowest level it will output. I.e. if the level is trace, all info will be shown, if the level is error, only error & critical logs will be shown.

Log.c(msg:str)

  • What is it? : Critical
  • Where do i use it? : Pretty much whenever something will cause a crash
  • Colors? : Red Foreground, White Background

Log.e(msg:str)

  • What is it? : Error
  • Where do i use it? : Whenever something has gone noteably wrong, that will cause a problem left unattended (i.e, the exception on a try catch)
  • Colors? : Red Foreground, Black Background

Log.w(msg:str)

  • What is it? : Warn
  • Where do i use it? : Whenever something Could go wrong, i.e. a function has returned undefined where it usually wouldn't
  • Colors? : Yellow Foreground, Black Background

Log.i(msg:str)

  • What is it? : Info
  • Where do i use it? : whenever you just want info about the programs running
  • Colors? : Foreground Green, Black Background

Log.d(msg:str)

  • What is it? : Debug
  • Where do i use it? : Pretty much whenever something will cause a crash
  • Colors? : Blue Foreground, Black Background

Log.t(msg:str)

  • What is it? : Trace
  • Where do i use it? : When you want to be overly anal about tracking a value as the program goes on.
  • Colors? : Cyan Foreground, Black Background

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

betterdebugging-1.0.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file betterdebugging-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for betterdebugging-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c5d154e967d9f1de44a10bf3a4df27214f432b182a73e1770db5b35e5760b005
MD5 0bd34774515082f58785842f5fa95fe6
BLAKE2b-256 daba9b9b872d5300e22b8f1d2f17b041e66a98bb9531094fb84c7c6a6e6c500f

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