0.0.2 • Published 4 years ago

shark-logger-remote v0.0.2

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

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

0.0.2

4 years ago

0.0.1

4 years ago