Loglestial API
Install
npm i @techlestial/loglestial
Quick start
const Loglestial = require("@techlestial/loglestial").default;
// or: import Loglestial from "@techlestial/loglestial";
const logger = Loglestial.init();
logger.info("Hello from Loglestial");
logger.error("Something went wrong");
logger.debug("Debug detail");
File logging
const logger = Loglestial.init({
logToFile: true,
fileLoggerOptions: { fileName: "app.log", folderName: "logs" },
});
Levels
log · info · debug · error