build-logger
v1.0.9
Published
This is logger to log your service.
Downloads
215
Readme
Logger Module
This Logger module is a TypeScript-based wrapper around the winston
logging library, providing customizable logging levels and formatting options. It includes built-in ANSI stripping for cleaner logs and a method for timestamped error logging.
Installation
You can install the package via npm:
npm install build-logger
Usage
Use the provided logger instance for info logs, as shown below:
import { logger } from "build-logger";
logger.info("Your message.");
logger.debug("Your message.");
logger.error("Your message.");
Use the provided debug instance for debug logs, as shown below:
import { debug } from "build-logger";
debug.info("Your message.");
debug.debug("Your message.");
debug.error("Your message.");
License
This project is licensed under the MIT License.
Report bugs
[email protected]