conslogger
v1.0.2
Published
## Setup
Downloads
12
Maintainers
Readme
consLogger
Setup
npm install consLogger
Usage
import { consLogger } from "consLogger";
//or
const { consLogger } = require("consLogger");
const logger = new consLogger({ time: true, date: true });
logger.console.log("Hello Log");
logger.console.error("Hello Error");
logger.console.warn("Hello Warn");
logger.console.createCustom("myCustom", "[Customm]", "#dff573");
logger.console.myCustom("Hello Custom");
Customize
const logger = new consLogger({
time: true,
date: true,
logText: {
headerText: "[MyLogHeader]>>",
headerTextColor: "#85d966",
textColor: "#96f573",
},
errorText: {
headerText: "[MyErrorHeader]>>",
headerTextColor: "#eb443b",
textColor: "#d96c66",
},
warnText: {
headerText: "[MyWarnHeader]>>",
headerTextColor: "#edde39",
textColor: "#f5e967",
},
});
logger.console.log("Hello Log");
logger.console.error("Hello Error");
logger.console.warn("Hello Warn");
Log the Console
const logger = new consLogger({ path: "/logs", dailyLog: true });
// If dailyLog is off, it always saves the console to only one file.
logger.console.log("Hello log file!");
console.log("Normal Log");
Folder View
Console View
Log File View
Github consLogger