@webiny/logger 5.41.0-dbt.0 → 5.41.0

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.
Files changed (2) hide show
  1. package/index.d.ts +21 -21
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -14,12 +14,25 @@ export interface LoggerOptions extends Omit<BaseLoggerOptions, "redact"> {
14
14
  export declare const getLogLevel: (input?: string, defaultLevel?: LevelWithSilent) => string;
15
15
  export declare const createPinoLogger: (input?: LoggerOptions, stream?: DestinationStream) => Logger<{
16
16
  level: string;
17
- redact?: string[] | RedactOptions | undefined;
17
+ redact?: RedactOptions | string[] | undefined;
18
18
  transport?: pino.TransportSingleOptions<Record<string, any>> | pino.TransportMultiOptions<Record<string, any>> | pino.TransportPipelineOptions<Record<string, any>> | undefined;
19
+ safe?: boolean | undefined;
19
20
  name?: string | undefined;
20
- base?: {
21
- [key: string]: any;
22
- } | null | undefined;
21
+ serializers?: {
22
+ [key: string]: pino.SerializerFn;
23
+ } | undefined;
24
+ timestamp?: boolean | (() => string) | undefined;
25
+ customLevels?: {
26
+ [key: string]: number;
27
+ } | undefined;
28
+ useOnlyCustomLevels?: boolean | undefined;
29
+ mixin?: ((mergeObject: object, level: number) => object) | undefined;
30
+ mixinMergeStrategy?: ((mergeObject: object, mixinObject: object) => object) | undefined;
31
+ levelVal?: number | undefined;
32
+ messageKey?: string | undefined;
33
+ errorKey?: string | undefined;
34
+ nestedKey?: string | undefined;
35
+ enabled?: boolean | undefined;
23
36
  browser?: {
24
37
  asObject?: boolean | undefined;
25
38
  write?: pino.WriteFn | ({
@@ -38,23 +51,9 @@ export declare const createPinoLogger: (input?: LoggerOptions, stream?: Destinat
38
51
  send: (level: pino.Level, logEvent: pino.LogEvent) => void;
39
52
  } | undefined;
40
53
  } | undefined;
41
- customLevels?: {
42
- [key: string]: number;
43
- } | undefined;
44
- useOnlyCustomLevels?: boolean | undefined;
45
- levelVal?: number | undefined;
46
- onChild?: (<ChildOptions extends pino.ChildLoggerOptions>(child: pino.Logger<BaseLoggerOptions & ChildOptions>) => void) | undefined;
47
- safe?: boolean | undefined;
48
- serializers?: {
49
- [key: string]: pino.SerializerFn;
50
- } | undefined;
51
- timestamp?: boolean | (() => string) | undefined;
52
- mixin?: ((mergeObject: object, level: number) => object) | undefined;
53
- mixinMergeStrategy?: ((mergeObject: object, mixinObject: object) => object) | undefined;
54
- messageKey?: string | undefined;
55
- errorKey?: string | undefined;
56
- nestedKey?: string | undefined;
57
- enabled?: boolean | undefined;
54
+ base?: {
55
+ [key: string]: any;
56
+ } | null | undefined;
58
57
  formatters?: {
59
58
  level?: ((label: string, number: number) => object) | undefined;
60
59
  bindings?: ((bindings: pino.Bindings) => object) | undefined;
@@ -66,6 +65,7 @@ export declare const createPinoLogger: (input?: LoggerOptions, stream?: Destinat
66
65
  } | undefined;
67
66
  depthLimit?: number | undefined;
68
67
  edgeLimit?: number | undefined;
68
+ onChild?: (<ChildOptions extends pino.ChildLoggerOptions>(child: pino.Logger<BaseLoggerOptions & ChildOptions>) => void) | undefined;
69
69
  }>;
70
70
  export declare const configureLogger: (options: LoggerOptions, stream?: DestinationStream) => void;
71
71
  export declare const getLogger: () => Logger<BaseLoggerOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/logger",
3
- "version": "5.41.0-dbt.0",
3
+ "version": "5.41.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,8 +19,8 @@
19
19
  "@babel/core": "7.24.3",
20
20
  "@babel/preset-env": "7.24.3",
21
21
  "@babel/preset-typescript": "7.24.1",
22
- "@webiny/cli": "5.41.0-dbt.0",
23
- "@webiny/project-utils": "5.41.0-dbt.0",
22
+ "@webiny/cli": "5.41.0",
23
+ "@webiny/project-utils": "5.41.0",
24
24
  "pino": "8.11.0",
25
25
  "rimraf": "5.0.5",
26
26
  "ttypescript": "1.5.15",
@@ -34,5 +34,5 @@
34
34
  "build": "yarn webiny run build",
35
35
  "watch": "yarn webiny run watch"
36
36
  },
37
- "gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
37
+ "gitHead": "a542f4d0806744c5e2333b3786478c4af3b6b750"
38
38
  }