oranch-client

Log receiving module with node

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.

$ npm install oranch-client

oranch-client will support many tasks however now only supports mail-service.

First you need to set mail service configuration. Mail service configuration is below. oranch-client mail service now supports GMail transporter.

  • user : GMail account name
  • pass : GMail account password
  • from : Envelope header
  • to : Envelope header
  • subject : Envelope header
  • logfile : Tracking target logfile name
  • match : Matching condition written in RegExp
var OranchClient = require('oranch-client');

var config = {
    service  : 'mail',
	user     : 'someone@gmail.com'
	pass     : 'somepassword',
	from     : 'Production server <prod.com>',
	to       : 'your_mail_address@example.com',
	subject  : 'Hello, World!',
	schedule : '*/3 * * * * *',
	logfile  : __dirname + '/logfile.log',
	match    : '/ERROR/'
};

var client = new OranchClient(config);
client.mail.start();

MIT License