Socket
Socket
Sign inDemoInstall

winston-daily-rotate-file

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-daily-rotate-file - npm Package Compare versions

Comparing version 4.5.0 to 4.5.1

2

index.d.ts

@@ -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',

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