Sha256: 77ec60c1dde60b60d83ee0d3dbb86e00d395433ea9bd3f713de32affcb1be456

Contents?: true

Size: 1.05 KB

Versions: 26

Compression:

Stored size: 1.05 KB

Contents

.\" generated with Ronn/v0.6.6
.\" http://github.com/rtomayko/ronn/
.
.TH "LOGGER" "" "June 2010" "" ""
.
.SH "Logger"
The \fIlogger\fR middleware provides common log format support, as well as custom formats, below is the default usage:
.
.IP "" 4
.
.nf

connect\.createServer(
    connect\.logger(),
);
.
.fi
.
.IP "" 0
.
.P
A custom format can also be passed:
.
.IP "" 4
.
.nf

connect\.createServer(
    connect\.logger({ format: \':method :url :response\-time\' })
);
.
.fi
.
.IP "" 0
.
.P
The following format tokens are currently available:
.
.IP "" 4
.
.nf

:req[header]    Arbitrary request header, ex: req[Accept]
:res[header]    Arbitrary response header, ex: res[Content\-Type]
:http\-version   HTTP request version
:response\-time  Response time in milliseconds
:remote\-addr    Remote address
:date           UTC date
:method         Request method
:url            Request url
:referrer       Request referrer / referer
:user\-agent     User\-Agent string
:status         Response status
.
.fi
.
.IP "" 0
.
.SS "Environment Variables"
.
.nf

\-\-logFormat
.
.fi

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
vulcan-0.8.2 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.8.1 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.8.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.7.2 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.7.1 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.7.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.6.1 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.6.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.5.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.4.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.3.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.2.5 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.2.4 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.2.3 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.2.2 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.2.1 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.2.0 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.1.6 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.1.5 server/node_modules/connect-form/support/connect/docs/logger.1
vulcan-0.1.4 server/node_modules/connect-form/support/connect/docs/logger.1