winston-daily-rotate-file
Advanced tools
Comparing version 3.5.2 to 3.6.0
@@ -84,3 +84,3 @@ 'use strict'; | ||
filename: path.join(this.dirname, this.filename), | ||
frequency: 'custom', | ||
frequency: options.frequency ? options.frequency : 'custom', | ||
date_format: options.datePattern ? options.datePattern : 'YYYY-MM-DD', | ||
@@ -87,0 +87,0 @@ verbose: false, |
{ | ||
"name": "winston-daily-rotate-file", | ||
"version": "3.5.2", | ||
"version": "3.6.0", | ||
"description": "A transport for winston which logs to a rotating file each day.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,2 +17,3 @@ # winston-daily-rotate-file | ||
* **frequency:** A string representing the frequency of rotation. This is useful if you want to have timed rotations, as opposed to rotations that happen at specific moments in time. Valid values are '#m' or '#h' (e.g., '5m' or '3h'). Leaving this null relies on `datePattern` for the rotation times. (default: null) | ||
* **datePattern:** A string representing the [moment.js date format](http://momentjs.com/docs/#/displaying/format/) to be used for rotating. The meta characters used in this string will dictate the frequency of the file rotation. For example, if your datePattern is simply 'HH' you will end up with 24 log files that are picked up and appended to every day. (default 'YYYY-MM-DD') | ||
@@ -19,0 +20,0 @@ * **zippedArchive:** A boolean to define whether or not to gzip archived log files. (default 'false') |
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
28110
67