A apache-like access log as middleware for express and restify.
A simple apache-like access log middleware for nodejs.
Accesslog will generate a apache like access.log file that can produce the two main formats: CLF and EXTENDED
var accesslog = require'accesslog';…expressappuseaccessloglogger;
Accesslog will produce a log file called "access.log" inside the ./logs directory of your application root. You can overwrite this defaults by passing a configuration object into the accesslog.configure function.
accesslogconfigureformat: 'CLF'directory: 'logs'filename: 'access.log';