1.0.1 • Published 2 years ago

sealogger v1.0.1

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

SeaLogger

A powerful library that help you organizing your logs in one place and its prettier

Features

  • Colors
  • Saves logs in files
  • ES6 syntax

Installation

Install SeaLogger with npm

  npm install sealogger@latest

How to use

First we need to import package

import Logger from "sealogger"

Then we are defining a class with path and console object

const logger = Logger(`./path/to/logs`, console)

And then we can use a package like

logger.log(`It's a test`)

An event handler is builded-in

logger.on(`error`, (message) => {
    // any to do
})

All functions:

  • log
  • success
  • info
  • error
  • on

Authors

Contributing

Contributions are always welcome!

If you want, dm me on server https://visualcontent.pl/discord (Rayer)

License

MIT