New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

good-formatters

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good-formatters

Formatters for hapijs/good

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

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

Keywords

hapi

FAQs

Package last updated on 24 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts