1.0.8 • Published 4 years ago

mevy-console v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Mevy Console

It is a package that can emitter a console and customize timestamp or disable items within the API. This package is compatible with Typescript and Javascript.

      
      const logger = new MevyLogs.LoggerClient({
      formatLogger: "{{timestamp}} {{tag}}",
      loggerName: "[Meby-Bot]",
      timestampformat: "dd",
      locale: 'en',
      dirLogger: "logSave.txt"
      autoSave: true
      })



      logger.log("Log")
      logger.warn("Warn")
      logger.error("Error")
      logger.debug("Debug")
      logger.info("Info")

Logger

      20:54:43 13/01/2135 [NOTE] [Log-Name] NOTE Description
      20:54:43 13/01/2135 [LOG] [Log-Name] Log
      20:54:43 13/01/2135 [WARN] [Log-Name] Warn
      20:54:43 13/01/2135 [ERROR] [Log-Name] Error
      20:54:43 13/01/2135 [DEBUG] [Log-Name] Debug
      20:54:43 13/01/2135 [INFO] [Log-Name] Info

Events

You can pull events from the log

logger.on("debugEmit", (debugMessage, event, data) => {
    ... your code
})

Save logs

Do you want to check what happened to your code or ended up losing what you were reading? Mevy Console now saves events to a .log file!