sealogger

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sealogger

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.59 kB

Total Files

6

Last publish

Collaborators

  • kvbus2115