___
__ /\_ \
___ /\_\ ___ ___ __ __ ___ \//\ \ ___ __ __ __ _ __
/'___\/\ \ /' _ `\ / __`\/\ \/\ \ / __`\ _______\ \ \ / __`\ /'_ `\ /'_ `\ /'__`\/\`'__\
/\ \__/\ \ \/\ \/\ \/\ \L\ \ \ \_/ |/\ \L\ \/\______\\_\ \_/\ \L\ \/\ \L\ \/\ \L\ \/\ __/\ \ \/
\ \____\\ \_\ \_\ \_\ \____/\ \___/ \ \____/\/______//\____\ \____/\ \____ \ \____ \ \____\\ \_\
\/____/ \/_/\/_/\/_/\/___/ \/__/ \/___/ \/____/\/___/ \/___L\ \/___L\ \/____/ \/_/
/\____/ /\____/
\_/__/ \_/__/
cinovo-logger-lib
Shared code used by all cinovo-logger endpoints.
Custom Endpoint
You must extend the require("cinovo-logger-lib").Endpoint.
var lib = ; { libEndpoint;}util;
And you must implement at least this two methods:
CustomEndpointprototype { // write the log object and call the callback if the log is written ;};CustomEndpointprototype { // stop the endpoint, call the callback if finished and all logs are written ;};
API
stop(callback)
Stop endpoint to avoid data loss.
callback
: Function(err)err
: Error
log(log, callback)
log
: Log https://github.com/cinovo/node-logger#logcallback
: Function(err)err
: Error
Events
stop()
Endpoint was stopped.
stopping()
Endpoint is stopping.