@kourosh-alasti/logger
v1.1.0
Published
TypeScript-first Logging Library
Downloads
214
Maintainers
Readme
@kourosh-alasti/logger
Examples • Documentation • Changelog • License
A Zero Dependency TypeScript logging library
Table of Contents
Installation
Add the package to your project via npm
npm install @kourosh-alasti/logger
Support Matrix
| Version | Supported | | :-----: | :-------: | | >=1.0.0 | ✅ |
Usage
There are two ways to add a logger to your application. The quickest way is using the default configuration.
import { createLogger } from '@kourosh-alati/logger';
const logger = createLogger();
logger.log("Hello World!");
logger.warn("Hello World!");
logger.debug("Hello World!");
logger.error("Hello World!");
logger.info("Hello World!");
Contributing
See CONTRIBUTING.md