Skip to content

b3nten/logger

Repository files navigation


Logger

LOGGER 📝

Gorgeous isomorphic logging

Npm package yearly downloads GitHub stars NuGet stable version

A tiny, beautiful logger for all JavaScript runtimes.

Usage

pnpm i @benstack/logger
import {
  createLogger,
  Levels,
  gradients
} from "@benstack/logger";

const logger = createLogger({
  name: "LOGGER",
  level: Levels.DEBUG,
	color: gradients.purple
})

logger.debug("Debug message.")
logger.info("Info.")
logger.success("Same level as info.")
logger.warn("Uh oh.")
logger.error("I don't feel so good...")
logger.critical("I'm done for!")

logger.whisper("I'm quiet, but not that quiet.")
logger.speak("You can normally hear me.")
logger.shout("You can always hear me, even in production.")

screenshot

License

Made with 💛

Published under MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published