0.1.0 ā€¢ Published 3 years ago

@techiepi/loggerine v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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