Socket
Socket
Sign inDemoInstall

pino

Package Overview
Dependencies
Maintainers
2
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "pino",
"version": "0.2.1",
"version": "0.2.2",
"description": "your logger, inspired by bunyan",

@@ -5,0 +5,0 @@ "main": "pino.js",

@@ -8,3 +8,8 @@ # pino

Still _alpha code_, and in active development.
* [Installation](#install)
* [Usage](#usage)
* [API](#api)
* [Benchmarks](#benchmarks)
* [How do I rotate log files?](#rotate)
* [License](#license)

@@ -138,2 +143,3 @@ ## Install

<a name="benchmarks"></a>
## Benchmarks

@@ -162,4 +168,31 @@

<a name="rotate"></a>
## How do I rotate log files
You should configure
[logrotate](https://github.com/logrotate/logrotate) to rotate your log
files, and just redirect the standard output of your application to a
file, like so:
```
node server.js > /var/log/myapp.log
```
In order to rotate your log files, add in `/etc/logrotate.d/myapp`:
```
/var/log/myapp.log {
su root
daily
rotate 7
delaycompress
compress
notifempty
missingok
copytruncate
}
```
## License
MIT
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