Socket.io Appender for log4js-node
Plugin for log4js > 2.x
npm install log4js-socket.io
Configuration
type
-log4js-socket.io
name
-string
(optional, defaults tolog4js
)env
-string
(optional, defaults todev
)event
-string
(optional, defaults tolog4js
)layout
-object
(optional, defaults tomessagePassThroughLayout
) - the layout to use for log events (see layouts).
The appender will use the Redis PUBLISH command to send the log event messages to the channel.
Example
log4js;