@fluxbot/better-console
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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}`)

image

Package Sidebar

Install

npm i @fluxbot/better-console

Weekly Downloads

2

Version

1.1.3

License

Apache-2.0

Unpacked Size

30 kB

Total Files

6

Last publish

Collaborators

  • oxytoan
  • noahprm