oranch-client
v0.0.4
Published
Log receiving module with node
Downloads
4
Readme
oranch-client
Log receiving module with oranch. This module uses oranch npm module. Oranch tracks any format logfiles. Therefore oranch-client supports tasks that invoked by oranch log-tracking.
How to install
$ npm install oranch-client
Services
oranch-client will support many tasks however now only supports mail-service.
mail-service
Usage
First you need to set mail service configuration. Mail service configuration is below. oranch-client mail service now supports GMail transporter.
user
: GMail account namepass
: GMail account passwordfrom
: Envelope headerto
: Envelope headersubject
: Envelope headerlogfile
: Tracking target logfile namematch
: Matching condition written in RegExp
Example
var OranchClient = require('oranch-client');
var config = {
service : 'mail',
user : '[email protected]'
pass : 'somepassword',
from : 'Production server <prod.com>',
to : '[email protected]',
subject : 'Hello, World!',
schedule : '*/3 * * * * *',
logfile : __dirname + '/logfile.log',
match : '/ERROR/'
};
var client = new OranchClient(config);
client.mail.start();