@strapi/logger
Advanced tools
Comparing version 0.0.0-next.aff9d09e4edf4d38b8a0de5abf83d79bedb28313 to 0.0.0-next.b0db56479de441dfe8feb37a43c7f6f6fecf75c1
@@ -1,4 +0,4 @@ | ||
import { LoggerOptions } from 'winston'; | ||
declare const _default: (filename: string) => LoggerOptions; | ||
import { transports, LoggerOptions } from 'winston'; | ||
declare const _default: (filename: string, fileTransportOptions?: transports.FileTransportOptions) => LoggerOptions; | ||
export default _default; | ||
//# sourceMappingURL=output-file-configuration.d.ts.map |
@@ -82,3 +82,3 @@ "use strict"; | ||
}; | ||
const outputFileConfiguration = (filename) => { | ||
const outputFileConfiguration = (filename, fileTransportOptions = {}) => { | ||
return { | ||
@@ -90,3 +90,8 @@ level: LEVEL_LABEL, | ||
new winston.transports.Console(), | ||
new winston.transports.File({ level: "error", filename, format: excludeColors }) | ||
new winston.transports.File({ | ||
level: "error", | ||
filename, | ||
format: excludeColors, | ||
...fileTransportOptions | ||
}) | ||
] | ||
@@ -93,0 +98,0 @@ }; |
{ | ||
"name": "@strapi/logger", | ||
"version": "0.0.0-next.aff9d09e4edf4d38b8a0de5abf83d79bedb28313", | ||
"version": "0.0.0-next.b0db56479de441dfe8feb37a43c7f6f6fecf75c1", | ||
"description": "Strapi's logger", | ||
@@ -31,3 +31,3 @@ "homepage": "https://strapi.io", | ||
"files": [ | ||
"./dist" | ||
"dist/" | ||
], | ||
@@ -46,11 +46,11 @@ "scripts": { | ||
"devDependencies": { | ||
"@strapi/pack-up": "4.23.0", | ||
"eslint-config-custom": "0.0.0-next.aff9d09e4edf4d38b8a0de5abf83d79bedb28313", | ||
"tsconfig": "0.0.0-next.aff9d09e4edf4d38b8a0de5abf83d79bedb28313" | ||
"@strapi/pack-up": "5.0.0", | ||
"eslint-config-custom": "0.0.0-next.b0db56479de441dfe8feb37a43c7f6f6fecf75c1", | ||
"tsconfig": "0.0.0-next.b0db56479de441dfe8feb37a43c7f6f6fecf75c1" | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0 <=20.x.x", | ||
"node": ">=18.0.0 <=22.x.x", | ||
"npm": ">=6.0.0" | ||
}, | ||
"gitHead": "aff9d09e4edf4d38b8a0de5abf83d79bedb28313" | ||
"gitHead": "b0db56479de441dfe8feb37a43c7f6f6fecf75c1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
27123
257