Giter VIP home page Giter VIP logo

loggaby-py's Introduction

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.

loggaby-py's People

Contributors

torchedsammy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.