0.1.0 • Published 11 years ago

connect-fluent-logger v0.1.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

connect-fluent-logger

A Connect middleware to send access log to fluentd.

Usage example

var logger = require('./connect-fluent-logger');

app.configure(function(){
  app.use(logger({tag:"test-app"}));
}

fluentd config example

# output log to file
<match test-app.access>
  type file
  path /var/log/td-agent/test-app/access.log
  time_slice_format %Y%m%d
  time_slice_wait 10m
  compress gzip
</match>