cinovo-logger-socket.io

Socket.IO wrapper for cinovo-logger.

npm install cinovo-logger-socket.io
5 downloads in the last week
12 downloads in the last month
                                                   ___
       __                                         /\_ \
  ___ /\_\    ___     ___   __  __    ___         \//\ \     ___      __      __      __   _ __
 /'___\/\ \ /' _ `\  / __`\/\ \/\ \  / __`\  _______\ \ \   / __`\  /'_ `\  /'_ `\  /'__`\/\`'__\
/\ \__/\ \ \/\ \/\ \/\ \L\ \ \ \_/ |/\ \L\ \/\______\\_\ \_/\ \L\ \/\ \L\ \/\ \L\ \/\  __/\ \ \/
\ \____\\ \_\ \_\ \_\ \____/\ \___/ \ \____/\/______//\____\ \____/\ \____ \ \____ \ \____\\ \_\
 \/____/ \/_/\/_/\/_/\/___/  \/__/   \/___/          \/____/\/___/  \/___L\ \/___L\ \/____/ \/_/
                                                                      /\____/ /\____/
                                                                      \_/__/  \_/__/

Build Status NPM version

cinovo-logger-socket.io

Socket.IO wrapper for cinovo-logger.

Getting started

At first you must install and require the logger.

npm install cinovo-logger

Next you must require the module

var logger = require("cinovo-logger");

Use cinovo-logger with socket.io

npm install cinovo-logger-socket.io

In your JavaScript code append the syslog endpoint.

var io = require("socket.io").listen(8080, {
    "logger": require("cinovo-logger-socket.io")(logger)
});

Done

Now you can use Socket.IO with cinovo-logger.

API

(logger)

Sync creates a wrapper.

  • logger: Logger - Instance of cinovo-logger

return: Wrapper - Wrapped cinovo-logger

npm loves you