Nietzsche's Preposterous Moustache
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    apache-like-accesslogpublic

    apache-like-accesslog


    A simple apache-like access log middleware for nodejs.

    Description

    Accesslog will generate a apache like access.log file that can produce the two main formats: CLF and EXTENDED

    Usage

    var accesslog = require('apache-like-accesslog');
    […express...]
    app.use(accesslog.logger);

    Configuration

    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.

    accesslog.configure({
        format: 'CLF',
        directory: 'logs',
        filename: 'access.log'});

    

    install

    npm i apache-like-accesslog

    Downloadsweekly downloads

    10

    version

    1.0.3

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar