Socket
Socket
Sign inDemoInstall

logfmt

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logfmt - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1

8

package.json
{
"name": "logfmt",
"version": "0.13.0",
"version": "0.13.1",
"description": "Key-Value log line parser",

@@ -13,5 +13,5 @@ "main": "logfmt.js",

"dependencies": {
"split": "*",
"through": "*",
"readable-stream": "*"
"split": "0.2.x",
"through": "2.3.x",
"readable-stream": "1.0.x"
},

@@ -18,0 +18,0 @@ "devDependencies": {

@@ -135,3 +135,4 @@ # node-logfmt

Defaults to timing the request and logging the HTTP method, status code, and content-type.
If no formatter is supplied it will default to `logfmt.requestLogger.commonFormatter` which is based
on having similiar fields to the Apache Common Log format.

@@ -164,3 +165,3 @@ Valid Options:

##### `formater(req, res)`
##### `formatter(req, res)`

@@ -178,4 +179,3 @@ A formatter takes the request and response and returns a JSON object for `logfmt.log`

If no formatter is supplied it will default to `logfmt.requestLogger.commonFormatter` which is based
on having similiar fields to the Apache Common Log format.
It's always possible to piggyback on top of the `commonFormatter`

@@ -182,0 +182,0 @@ ```javascript

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc