winston-daily-rotate-file
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -90,3 +90,3 @@ 'use strict'; | ||
end_stream: true, | ||
audit_file: path.join(self.dirname, '.' + hash(options) + '-audit.json'), | ||
audit_file: options.auditFile ? options.auditFile : path.join(self.dirname, '.' + hash(options) + '-audit.json'), | ||
file_options: options.options ? options.options : {flags: 'a'} | ||
@@ -93,0 +93,0 @@ }); |
{ | ||
"name": "winston-daily-rotate-file", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"description": "A transport for winston which logs to a rotating file each day.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,2 +26,3 @@ # winston-daily-rotate-file | ||
* **options:** An object resembling https://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options indicating additional options that should be passed to the file stream. (default: `{ flags: 'a' }`) | ||
* **auditFile**: A string representing the name of the name of the audit file. This can be used to override the default filename which is generated by computing a hash of the options object. (default: '.<optionsHash>.json') | ||
@@ -28,0 +29,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
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
28376
68