@fluxbot/better-console
v1.1.3
Published
Your console is 10x better with better-console's logger and colors
Downloads
21
Readme
better-console
Your console is 10x better with better-console's logger and colors
Guide
You can see the guide that explains how to use better-console on the wiki page
Example of use:
const log = new ConsoleLogger(
new ConsoleConfig()
.setFileLogger(
new FileLogger(
path.join("./logs/logs.log")
)
)
)
log.info("hello world")
log.success("hello world")
log.warn("hello world")
log.startup("hello world")
log.error("hello world")
log.debug("hello world")
log.database("hello world")
log.custom("prefix", Colors.Green, "hello world")
log.info(`${Colors.BgBlue}Hello world in BgBlue !${Colors.BgClose}`)
log.info(`${Colors.BgMagenta}Hello world in BgMagenta !${Colors.BgClose}`)
log.info(`${Colors.Blue}Hello world in Blue !${Colors.Close}`)
log.info(`${Colors.Magenta}Hello world in Magenta !${Colors.Close}`)