๐ Simple, minimal logging for Python without useless features.
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:
(Exactly like the original)
pip install loggaby
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 ofdict
s)name
{str} Name of the level that appears in the logscolor
{str} Color of thename
(accepted values are these or a hex value)debug
{bool} Whether this is a debug log (that is hidden withdebug: false
)fatal
{bool} Whether to make the level name and message bold and underlinecall
{str} Name of the function to use this level
debug
, log
, warn
, error
, fatal
by default.
You can log with logger.<Level>()
. (examples)
Loggaby-py is licensed under the MIT license.
Read here for more info.
A Luvella project.