winston-daily-rotate-file
Advanced tools
Comparing version 4.5.0 to 4.5.1
@@ -8,3 +8,3 @@ import TransportStream = require("winston-transport"); | ||
[K in Keys]-?: | ||
Required<Pick<T, K>> | ||
Pick<T, K> | ||
& Partial<Record<Exclude<Keys, K>, undefined>> | ||
@@ -11,0 +11,0 @@ }[Keys]; |
{ | ||
"name": "winston-daily-rotate-file", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "A transport for winston which logs to a rotating file each day.", | ||
@@ -46,4 +46,4 @@ "main": "index.js", | ||
"triple-beam": "^1.3.0", | ||
"winston-transport": "^4.2.0" | ||
"winston-transport": "^4.4.0" | ||
} | ||
} |
@@ -25,3 +25,3 @@ # winston-daily-rotate-file | ||
* **zippedArchive:** A boolean to define whether or not to gzip archived log files. (default: 'false') | ||
* **filename:** Filename to be used to log to. This filename can include the `%DATE%` placeholder which will include the formatted datePattern at that point in the filename. (default: 'winston.log.%DATE%) | ||
* **filename:** Filename to be used to log to. This filename can include the `%DATE%` placeholder which will include the formatted datePattern at that point in the filename. (default: 'winston.log.%DATE%') | ||
* **dirname:** The directory name to save log files to. (default: '.') | ||
@@ -32,3 +32,3 @@ * **stream:** Write directly to a custom stream and bypass the rotation capabilities. (default: null) | ||
* **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') | ||
* **auditFile**: A string representing 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') | ||
* **utc**: Use UTC time for date in filename. (default: false) | ||
@@ -44,3 +44,3 @@ * **extension**: File extension to be appended to the filename. (default: '') | ||
var transport = new (winston.transports.DailyRotateFile)({ | ||
var transport = new winston.transports.DailyRotateFile({ | ||
filename: 'application-%DATE%.log', | ||
@@ -47,0 +47,0 @@ datePattern: 'YYYY-MM-DD-HH', |
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
34110
Updatedwinston-transport@^4.4.0