Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
/ Loggaby-py Public archive

๐Ÿ Simple, minimal logging for Python.

License

Notifications You must be signed in to change notification settings

TorchedArchive/Loggaby-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Loggaby-py

๐Ÿ Simple, minimal logging for Python without useless features.

GitHub license GitHub stars
Loggaby-py is a direct port (aims to be, anyway) of the original JS version. It does 1 thing and does it well: posting nice logs to a terminal. Or perhaps a file? Anywhere you need can be done with a Transport.

Oh, it looks like this:
Preview
(Exactly like the original)

Table of Contents

Install

pip install loggaby

Examples

Provided Here.

Documentation

Loggaby(debug=True, levels=[], transports=[TerminalTransport()])

The Loggaby constructor, which creates a logger instance.

  • transports {object[]} (An array of objects or specifically transport instances) What transports to log to. An example is provided above.
  • debug {Boolean} Whether to print debug messages.
  • levels Additional custom levels to provide. (An array of dicts)
    • name {str} Name of the level that appears in the logs
    • color {str} Color of the name (accepted values are these or a hex value)
    • debug {bool} Whether this is a debug log (that is hidden with debug: false)
    • fatal {bool} Whether to make the level name and message bold and underline
    • call {str} Name of the function to use this level

Levels

debug, log, warn, error, fatal by default.

You can log with logger.<Level>(). (examples)

License

Loggaby-py is licensed under the MIT license.
Read here for more info.


A Luvella project.