Comparing version 0.2.1 to 0.2.2
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
234729
196