2.1.1 • Published 12 months ago
d_custom_logger v2.1.1
d_custom_logger
Globally display or hide the logs based on the configuration
Table of Contents
Installation
# install (recommended)
npm i d_custom_logger@latest
Configuration
Configure logger at the root of the project:
//commonjs
const logger = require("d_custom_logger");
//es6
import logger from "d_custom_logger";
logger.configure({
display: true, //globally hide all logs
log: true,
error: true,
warn: true,
debug: true,
info: true,
trace: true,
});
Usage
Based on the configuration console will either display logs or hide
console.error("error logs");
console.log("success logs");
console.warn("warning logs");
console.info("info logs");
2.1.0-beta.1
12 months ago
1.1.1
12 months ago
1.1.0
12 months ago
2.1.1
12 months ago
2.0.0-beta.2
12 months ago
2.0.0-beta.1
12 months ago
2.1.0
12 months ago
2.0.0
12 months ago
2.0.0-beta.3
12 months ago
1.0.2
12 months ago
1.0.1
12 months ago
1.0.0
12 months ago