@rf-logger/logger 0.0.9 → 0.0.10

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.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Default Winston's logging levels,
3
+ * see https://github.com/winstonjs/winston#logging-levels
4
+ */
5
+ export declare enum LogLevelEnum {
6
+ Error = "error",
7
+ Warn = "warn",
8
+ Info = "info",
9
+ Http = "http",
10
+ Verbose = "verbose",
11
+ Debug = "debug",
12
+ Silly = "silly"
13
+ }
14
+ export type LogLevel = `${LogLevelEnum}`;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogLevelEnum = void 0;
4
+ /**
5
+ * Default Winston's logging levels,
6
+ * see https://github.com/winstonjs/winston#logging-levels
7
+ */
8
+ var LogLevelEnum;
9
+ (function (LogLevelEnum) {
10
+ LogLevelEnum["Error"] = "error";
11
+ LogLevelEnum["Warn"] = "warn";
12
+ LogLevelEnum["Info"] = "info";
13
+ LogLevelEnum["Http"] = "http";
14
+ LogLevelEnum["Verbose"] = "verbose";
15
+ LogLevelEnum["Debug"] = "debug";
16
+ LogLevelEnum["Silly"] = "silly";
17
+ })(LogLevelEnum = exports.LogLevelEnum || (exports.LogLevelEnum = {}));
package/dist/types.d.ts CHANGED
@@ -1,18 +1,14 @@
1
- import { Logger, Logform } from "winston";
2
- import TransportStream from "winston-transport";
1
+ import { Logger, Logform, transport } from "winston";
2
+ import type { LogLevel } from "./logLevel";
3
3
  export type Options = {
4
4
  format?: "json" | "plain";
5
5
  silent?: boolean;
6
6
  level?: LogLevel;
7
7
  handleWarnings?: boolean;
8
8
  plugins?: LoggerPlugin[];
9
- transports?: TransportStream[];
9
+ transports?: transport[];
10
10
  };
11
- /**
12
- * Default Winston's logging levels,
13
- * see https://github.com/winstonjs/winston#logging-levels
14
- */
15
- export type LogLevel = "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
11
+ export { LogLevel };
16
12
  export type ErrorLog = Error & {
17
13
  traceId: string;
18
14
  };
package/package.json CHANGED
@@ -10,8 +10,7 @@
10
10
  "safe-stable-stringify": "^2.3.1",
11
11
  "triple-beam": "^1.3.0",
12
12
  "uuid": "^8.3.2",
13
- "winston": "^3.8.2",
14
- "winston-transport": "^4.5.0"
13
+ "winston": "^3.8.2"
15
14
  },
16
15
  "devDependencies": {
17
16
  "@types/triple-beam": "^1.3.2",
@@ -21,7 +20,7 @@
21
20
  "engines": {
22
21
  "node": ">=16.0.0"
23
22
  },
24
- "version": "0.0.9",
23
+ "version": "0.0.10",
25
24
  "scripts": {
26
25
  "test": "jest",
27
26
  "version": "pnpm version --no-git-tag-version"