Git Product home page Git Product logo

loggerine's Introduction

loggerine

๐Ÿ–‹ A simple, reliable and easy to use logger

Warning! Loggerine is on an early stage, it may have some bugs

Features

  • ๐Ÿ“ฆ Lightweight. Just 2Kb bundled
  • ๐Ÿง‚ Simple. The package is just a single class with a few functions
  • ๐Ÿ”Œ Fast. It's simple, it's fast
  • ๐Ÿ“š Documented. It's simple, it's almost self-documenting, although there are docs
  • ๐Ÿ—ฝ Open Source. MIT License, as simple as the library

Getting started

Install the library with

npm install @techiepi/loggerine

You're done! Now you can use the library like in the example below

const logger = new Loggerine({
    module: "Example",
    debugLevel: 3,
    useVanillaFunctions: true
});

logger.debug("This is a test debug"); // Shouldn't do anything because the debug level is < 4
logger.info("This is a test info"); // Should print it because the debug level is >= 3
logger.warn("This is a test warn"); // Should print it because the debug level is >= 3
logger.error("This is a test error"); // Should print it because the debug level is >= 3

Result of the code above

Build

You can run

npm run build

to build the library

License

This project is licensed under the MIT license

loggerine's People

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.