@nocobase/logger 0.14.0-alpha.7 → 0.15.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/create-logger.d.ts +1 -1
- package/lib/create-logger.js +1 -1
- package/package.json +2 -2
package/lib/create-logger.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare function getLoggerLevel(): string;
|
|
|
4
4
|
export declare function getLoggerFilePath(...paths: string[]): string;
|
|
5
5
|
declare const Transports: {
|
|
6
6
|
console(options: any): winston.transports.ConsoleTransportInstance;
|
|
7
|
-
dailyRotateFile(options
|
|
7
|
+
dailyRotateFile(options?: any): import("winston-daily-rotate-file");
|
|
8
8
|
};
|
|
9
9
|
type WinstonTransport = string | string[] | winston.transport | winston.transport[];
|
|
10
10
|
interface LoggerOptions extends Omit<winston.LoggerOptions, 'transports'> {
|
package/lib/create-logger.js
CHANGED
|
@@ -54,7 +54,7 @@ const Transports = {
|
|
|
54
54
|
...options
|
|
55
55
|
});
|
|
56
56
|
},
|
|
57
|
-
dailyRotateFile(options) {
|
|
57
|
+
dailyRotateFile(options = {}) {
|
|
58
58
|
let dirname = getLoggerFilePath();
|
|
59
59
|
if (!import_path.default.isAbsolute(dirname)) {
|
|
60
60
|
dirname = import_path.default.resolve(process.cwd(), dirname);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/logger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-alpha.1",
|
|
4
4
|
"description": "nocobase logging library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"winston": "^3.8.2",
|
|
16
16
|
"winston-daily-rotate-file": "^4.7.1"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "8bbeab858a818fbe0a1f954ecf1f61337d06c065"
|
|
19
19
|
}
|