shark-logger-remote

0.0.2 • Public • Published

shark-logger

Example:


const sharkevent = require("shark-logger-remote");

const logger = new sharkevent("myapplication.log", ["ERR", "WARN", "INFO"], { port: 8080, host: "localhost" });

logger.emit("info", "Helloworld");

logger.emit("warn", "Be careful!");

logger.emit("error", "OOOPS!");

This will log three things into the file myapplication.log and send it to localhost at port 8080 via udp

Readme

Keywords

none

Package Sidebar

Install

npm i shark-logger-remote

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

4.2 kB

Total Files

6

Last publish

Collaborators

  • sharkbyteprojects