@lullaby6/logger
v1.0.0
Published
Minimal logger with colors, timestamp, and stack trace.
Readme
Logger
Minimal logger with colors, timestamp, and stack trace.

Installation
NPM
npm i @lullaby6/logger// CommonJS
const Logger = require("@lullaby6/logger");
// ES Modules
import Logger from "@lullaby6/logger";CDN
<!-- 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>Download
Click to download
<script src="/path/to/logger.min.umd.js"></script>Usage
// 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;