Minimal logger with colors, timestamp, and stack trace.
npm i @lullaby6/logger// CommonJS
const Logger = require("@lullaby6/logger");
// ES Modules
import Logger from "@lullaby6/logger";<!-- UMD/Global -->
<script src="https://cdn.jsdelivr.net/gh/lullaby6/logger.js/logger.min.umd.js"></script>
<!-- Module -->
<script type="module">
import Logger from "https://cdn.jsdelivr.net/gh/lullaby6/logger.js/logger.min.mjs.js";
</script><script src="/path/to/logger.min.umd.js"></script>// Logs
Logger.log("Log");
Logger.info("Info");
Logger.warn("Warning");
Logger.error("Error");
Logger.success("Success");
Logger.debug("Debug");
Logger.trace("Trace");
// Disable timestamp
Logger.config.showTimestamp = false;
// Disable stack trace
Logger.config.showStackTrace = false;