0.1.3 • Published 11 years ago

jthalog v0.1.3

Weekly downloads
38
License
-
Repository
-
Last release
11 years ago

模块描述

用于haproxy的log收集, 以及分析HTTP LOG信息,生成相关的统计数据,需要使用到JTStatsClient,相关说明请参考: https://github.com/vicanso/jtstats_client

API

参数列表

  • options {logPath : 'log存放的文件目录', statsClient : JTStatsClient, port : '监听haproxy log的端口', 'host' : '监听的host'},如果参数statsClient为空,则只将haproxy的log记录到文件,不做分析
var jtHalog = require('jthalog');
var JTStatsClient = require('jtstats_client');
jtHalog.start({
  logPath : '/log/haproxy',
  port : '9200',
  host : '127.0.0.1',
  statsClient : new JTStatsClient({
    category : 'haproxy'
  })
});

参数列表

  • handler,处理函数,参数列表为:statsClient, infos
var jtHalog = require('jthalog');
var JTStatsClient = require('jtstats_client');
jtHalog.start({
  logPath : '/log/haproxy',
  port : '9200',
  host : '127.0.0.1',
  statsClient : new JTStatsClient({
    category : 'haproxy'
  })
});
jtHalog.addStatisticsHandler(function(statsClient, infos){
  
});
0.1.3

11 years ago

0.1.2

11 years ago

0.1.0

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago