0.1.0 ā¢ Published 3 years ago
@techiepi/loggerine v0.1.0
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
Build
You can run
npm run build
to build the library
License
This project is licensed under the MIT license
0.1.0
3 years ago