0.1.7 • Published 7 years ago

good-formatters v0.1.7

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
7 years ago

good-formatters

Apache Formatter

Credit goes to good-apache-log but this works with good 7.x.

Example usage

const goodOptions = {
    reporters: {
        fileReporter: [{
            module: 'good-squeeze',
            name: 'Squeeze',
            args: [{ 'response': '*', 'request-error': '*' }]
        }, {
            module: 'good-formatters',
            name: 'Apache',
            // pre-defined formats are 'combined', 'common', 'referrer'
            args: [{ format: 'common' }]
        }, {
            module: 'good-file',
            args: ['./apache-log.txt']
        }]
    }
}

Predefined Formats

  • combined: %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"
  • common: %h %l %u %t \"%r\" %>s %b
  • referer: %{Referer}i -> %U

see apache log files

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago