@plyaz/types 1.14.4 → 1.14.5
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/dist/logger/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/logger/types.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface LoggerInterface {
|
|
|
21
21
|
}
|
|
22
22
|
export type LoggerMethodTypes = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
23
23
|
export type LoggerEnvironment = 'development' | 'production' | 'staging';
|
|
24
|
+
export type LoggerTransport = 'pino' | 'console';
|
|
24
25
|
/**
|
|
25
26
|
* Configuration for PackageLogger instances
|
|
26
27
|
*/
|
|
@@ -35,6 +36,8 @@ export interface PackageLoggerConfig {
|
|
|
35
36
|
correlationId?: string;
|
|
36
37
|
/** Minimum log level to output */
|
|
37
38
|
minLevel?: LoggerMethodTypes;
|
|
39
|
+
/** Transport type: 'pino' (structured JSON) or 'console' (formatted output with ANSI colors). Default: 'pino' */
|
|
40
|
+
transport?: LoggerTransport;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* Extended logger interface with package context support
|
package/package.json
CHANGED