logan-logger 1.1.2 → 1.1.6

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/bun.d.ts CHANGED
@@ -1,323 +1,7 @@
1
- declare abstract class BaseLogger implements ILogger {
2
- protected level: LogLevel;
3
- protected config: Partial<LoggerConfig>;
4
- protected runtime: RuntimeName;
5
- protected childMetadata: Record<string, any>;
6
- protected constructor(config?: Partial<LoggerConfig>);
7
- debug(message: LogMessage, metadata?: any): void;
8
- info(message: LogMessage, metadata?: any): void;
9
- warn(message: LogMessage, metadata?: any): void;
10
- error(message: LogMessage, metadata?: any): void;
11
- log(level: LogLevel, message: LogMessage, metadata?: any): void;
12
- setLevel(level: LogLevel): void;
13
- getLevel(): LogLevel;
14
- child(metadata: Record<string, any>): ILogger;
15
- protected shouldLog(level: LogLevel): boolean;
16
- protected abstract writeLog(entry: LogEntry): void;
17
- protected abstract createChild(): BaseLogger;
18
- }
19
-
20
- /**
21
- * Convenience function for creating a logger instance.
22
- * @param config - Optional configuration for the logger
23
- * @returns A logger instance appropriate for the current runtime
24
- * @example
25
- * ```typescript
26
- * import { createLogger, LogLevel } from 'logan-logger';
27
- *
28
- * const logger = createLogger({
29
- * level: LogLevel.DEBUG,
30
- * colorize: true
31
- * });
32
- *
33
- * logger.info('Hello world!');
34
- * ```
35
- */
36
- export declare function createLogger(config?: Partial<LoggerConfig>): ILogger;
37
-
38
- /**
39
- * Create a logger with configuration based on the current environment.
40
- * Automatically detects production/development/test environments and
41
- * sets appropriate log levels and formatting.
42
- * @returns A logger instance configured for the current environment
43
- */
44
- export declare function createLoggerForEnvironment(): ILogger;
45
-
46
- /**
47
- * Detects the current JavaScript runtime environment and its capabilities.
48
- * @returns Information about the detected runtime
49
- * @example
50
- * ```typescript
51
- * const runtime = detectRuntime();
52
- * console.log(`Running on: ${runtime.name} ${runtime.version}`);
53
- * ```
54
- */
55
- export declare function detectRuntime(): RuntimeInfo;
56
-
57
- /**
58
- * Filter out sensitive data from an object before logging.
59
- * @param obj - The object to filter
60
- * @param sensitiveKeys - Array of key names to redact (case-insensitive)
61
- * @returns A new object with sensitive values replaced with '[REDACTED]'
62
- * @example
63
- * ```typescript
64
- * const data = { username: 'john', password: 'secret123' };
65
- * const filtered = filterSensitiveData(data);
66
- * // Result: { username: 'john', password: '[REDACTED]' }
67
- * ```
68
- */
69
- export declare function filterSensitiveData(obj: any, sensitiveKeys?: string[]): any;
70
-
71
- /**
72
- * Format log level as a colored string for terminal output.
73
- * @param level - The log level to format
74
- * @param colorize - Whether to apply ANSI color codes
75
- * @returns Formatted level string with optional colors
76
- */
77
- export declare function formatLevel(level: LogLevel, colorize?: boolean): string;
78
-
79
- /**
80
- * Format a log entry for output in different formats.
81
- * @param entry - The log entry to format
82
- * @param format - Output format ('json' or 'text')
83
- * @returns Formatted log string
84
- * @example
85
- * ```typescript
86
- * const entry: LogEntry = {
87
- * timestamp: new Date(),
88
- * level: LogLevel.INFO,
89
- * message: 'User logged in',
90
- * metadata: { userId: 123 },
91
- * runtime: 'node'
92
- * };
93
- *
94
- * const textFormat = formatLogEntry(entry, 'text');
95
- * // Result: "[2024-01-01T12:00:00.000Z] INFO: User logged in {\"userId\":123}"
96
- *
97
- * const jsonFormat = formatLogEntry(entry, 'json');
98
- * // Result: {"timestamp":"2024-01-01T12:00:00.000Z","level":"info","message":"User logged in","metadata":{"userId":123},"runtime":"node"}
99
- * ```
100
- */
101
- export declare function formatLogEntry(entry: LogEntry, format?: 'json' | 'text'): string;
102
-
103
- export declare function getDefaultConfig(): LoggerConfig;
104
-
105
- /**
106
- * Main logger interface providing methods for logging at different levels.
107
- * This interface is implemented by all logger implementations across different runtimes.
108
- */
109
- export declare interface ILogger {
110
- /**
111
- * Log a debug message. Only shown when log level is DEBUG.
112
- * @param message - The message to log (string or lazy function)
113
- * @param metadata - Optional structured data to include
114
- */
115
- debug(message: LogMessage, metadata?: any): void;
116
- /**
117
- * Log an informational message.
118
- * @param message - The message to log (string or lazy function)
119
- * @param metadata - Optional structured data to include
120
- */
121
- info(message: LogMessage, metadata?: any): void;
122
- /**
123
- * Log a warning message.
124
- * @param message - The message to log (string or lazy function)
125
- * @param metadata - Optional structured data to include
126
- */
127
- warn(message: LogMessage, metadata?: any): void;
128
- /**
129
- * Log an error message.
130
- * @param message - The message to log (string or lazy function)
131
- * @param metadata - Optional structured data to include
132
- */
133
- error(message: LogMessage, metadata?: any): void;
134
- /**
135
- * Log a message at a specific level.
136
- * @param level - The log level
137
- * @param message - The message to log (string or lazy function)
138
- * @param metadata - Optional structured data to include
139
- */
140
- log(level: LogLevel, message: LogMessage, metadata?: any): void;
141
- /**
142
- * Set the minimum log level for this logger.
143
- * @param level - The minimum log level
144
- */
145
- setLevel(level: LogLevel): void;
146
- /**
147
- * Get the current minimum log level.
148
- * @returns The current log level
149
- */
150
- getLevel(): LogLevel;
151
- /**
152
- * Create a child logger with additional metadata.
153
- * @param metadata - Additional metadata to include in all child log messages
154
- * @returns A new logger instance with the additional metadata
155
- */
156
- child(metadata: Record<string, any>): ILogger;
157
- }
158
-
159
- /**
160
- * Check if the current runtime is a browser.
161
- * @returns True if running in a browser
162
- */
163
- export declare function isBrowser(): boolean;
164
-
165
- /**
166
- * Check if the current runtime is Bun.
167
- * @returns True if running in Bun
168
- */
169
- export declare function isBun(): boolean;
170
-
171
- /**
172
- * Check if the current runtime is Deno.
173
- * @returns True if running in Deno
174
- */
175
- export declare function isDeno(): boolean;
176
-
177
- /**
178
- * Check if the current runtime is Node.js.
179
- * @returns True if running in Node.js
180
- */
181
- export declare function isNode(): boolean;
182
-
183
- export declare function loadConfigFromEnvironment(): Partial<LoggerConfig>;
184
-
185
- export declare function loadConfigFromFile(configPath?: string): Promise<Partial<LoggerConfig>>;
186
-
187
- /**
188
- * Internal representation of a log entry.
189
- */
190
- declare interface LogEntry {
191
- /** When the log entry was created */
192
- timestamp: Date;
193
- /** Log level of this entry */
194
- level: LogLevel;
195
- /** The log message */
196
- message: string;
197
- /** Additional structured data */
198
- metadata?: Record<string, any>;
199
- /** Runtime that generated this log entry */
200
- runtime: RuntimeName;
201
- }
202
-
203
- /**
204
- * Configuration options for creating a logger instance.
205
- */
206
- export declare interface LoggerConfig {
207
- /** Minimum log level to output */
208
- level: LogLevel;
209
- /** Output format for log messages */
210
- format: 'json' | 'text' | 'custom';
211
- /** Whether to include timestamps in log output */
212
- timestamp: boolean;
213
- /** Whether to colorize log output (if supported) */
214
- colorize: boolean;
215
- /** Default metadata to include with all log messages */
216
- metadata: Record<string, any>;
217
- /** Transport configurations for log output */
218
- transports?: TransportConfig[];
219
- }
220
-
221
- /**
222
- * Log levels in ascending order of severity.
223
- * Used to filter which messages should be logged.
224
- */
225
- export declare enum LogLevel {
226
- /** Debug messages - most verbose */
227
- DEBUG = 0,
228
- /** Informational messages */
229
- INFO = 1,
230
- /** Warning messages */
231
- WARN = 2,
232
- /** Error messages */
233
- ERROR = 3,
234
- /** No messages - silent mode */
235
- SILENT = 4
236
- }
237
-
238
- /**
239
- * A log message can be a string or a function that returns a string.
240
- * Functions enable lazy evaluation for expensive log message generation.
241
- */
242
- declare type LogMessage = string | (() => string);
243
-
244
- export declare function mergeConfigs(...configs: Partial<LoggerConfig>[]): LoggerConfig;
245
-
246
- export declare class NodeLogger extends BaseLogger {
247
- private winston?;
248
- constructor(config?: Partial<LoggerConfig>);
249
- private initializeWinston;
250
- private createWinstonLogger;
251
- protected writeLog(entry: LogEntry): void;
252
- protected createChild(): BaseLogger;
253
- private writeToConsole;
254
- private getWinstonLevel;
255
- setLevel(level: LogLevel): void;
256
- }
257
-
258
- /**
259
- * Capabilities that a runtime may or may not support.
260
- */
261
- declare interface RuntimeCapabilities {
262
- /** Whether the runtime supports file system operations */
263
- fileSystem: boolean;
264
- /** Whether the runtime supports colored console output */
265
- colorSupport: boolean;
266
- /** Whether the runtime provides process information */
267
- processInfo: boolean;
268
- /** Whether the runtime supports streams */
269
- streams: boolean;
270
- }
271
-
272
- /**
273
- * Information about the detected JavaScript runtime environment.
274
- */
275
- declare interface RuntimeInfo {
276
- /** The name of the runtime */
277
- name: RuntimeName;
278
- /** Version string of the runtime (if available) */
279
- version?: string;
280
- /** Capabilities supported by this runtime */
281
- capabilities: RuntimeCapabilities;
282
- }
283
-
284
- /**
285
- * Supported JavaScript runtime environments.
286
- */
287
- declare type RuntimeName = 'node' | 'deno' | 'bun' | 'browser' | 'webworker' | 'unknown';
288
-
289
- /**
290
- * Safely stringify an object to JSON, handling circular references,
291
- * Error objects, functions, and other non-serializable values.
292
- * @param obj - The object to stringify
293
- * @param space - Number of spaces for pretty-printing (optional)
294
- * @returns JSON string representation
295
- */
296
- export declare function safeStringify(obj: any, space?: number): string;
297
-
298
- /**
299
- * Serialize Error objects to plain objects for logging.
300
- * @param error - The error to serialize
301
- * @returns Serialized error object or original value if not an Error
302
- * @example
303
- * ```typescript
304
- * const error = new Error('Something went wrong');
305
- * const serialized = serializeError(error);
306
- * // Result: { name: 'Error', message: 'Something went wrong', stack: '...' }
307
- * ```
308
- */
309
- export declare function serializeError(error: any): any;
310
-
311
- /**
312
- * Configuration for a specific log transport (output destination).
313
- */
314
- declare interface TransportConfig {
315
- /** Type of transport */
316
- type: 'console' | 'file' | 'http' | 'custom';
317
- /** Minimum log level for this transport */
318
- level?: LogLevel;
319
- /** Transport-specific options */
320
- options: Record<string, any>;
321
- }
322
-
323
- export { }
1
+ export { NodeLogger } from './runtime/node';
2
+ export type { ILogger, LoggerConfig, LogLevel } from './core/types';
3
+ export { createLogger, createLoggerForEnvironment } from './core/factory';
4
+ export * from './utils/runtime';
5
+ export * from './utils/config';
6
+ export * from './utils/serialization';
7
+ export * from './utils/formatting';
package/dist/bun.esm.js CHANGED
@@ -1,21 +1,22 @@
1
- import { N as o, a as r, c as s, e as i, p as t, j as n, f as g, h as f, g as m, i as l, k as d, m as L, n as c, o as v, q as C } from "./node-BqvVrzA_.mjs";
2
- import { formatLevel as F, formatLogEntry as p } from "./deno.esm.js";
1
+ import { N as o, c as r, a as s, g as i, l as t, b as n, m as f } from "./node-NjRZ5jt7.mjs";
2
+ import { d as m, f as l, a as d, c, b as L, i as v, s as C, e as E } from "./browser-C6UkWymL.mjs";
3
+ import { a as p, f as u } from "./formatting-BZyid6rr.mjs";
3
4
  export {
4
5
  o as NodeLogger,
5
6
  r as createLogger,
6
7
  s as createLoggerForEnvironment,
7
- i as detectRuntime,
8
- t as filterSensitiveData,
9
- F as formatLevel,
10
- p as formatLogEntry,
11
- n as getDefaultConfig,
12
- g as isBrowser,
13
- f as isBun,
14
- m as isDeno,
15
- l as isNode,
16
- d as loadConfigFromEnvironment,
17
- L as loadConfigFromFile,
18
- c as mergeConfigs,
19
- v as safeStringify,
20
- C as serializeError
8
+ m as detectRuntime,
9
+ l as filterSensitiveData,
10
+ p as formatLevel,
11
+ u as formatLogEntry,
12
+ i as getDefaultConfig,
13
+ d as isBrowser,
14
+ c as isBun,
15
+ L as isDeno,
16
+ v as isNode,
17
+ t as loadConfigFromEnvironment,
18
+ n as loadConfigFromFile,
19
+ f as mergeConfigs,
20
+ C as safeStringify,
21
+ E as serializeError
21
22
  };
package/dist/bun.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./node-BKsollr4.js"),o=require("./deno.js");exports.NodeLogger=e.NodeLogger;exports.createLogger=e.createLogger;exports.createLoggerForEnvironment=e.createLoggerForEnvironment;exports.detectRuntime=e.detectRuntime;exports.filterSensitiveData=e.filterSensitiveData;exports.getDefaultConfig=e.getDefaultConfig;exports.isBrowser=e.isBrowser;exports.isBun=e.isBun;exports.isDeno=e.isDeno;exports.isNode=e.isNode;exports.loadConfigFromEnvironment=e.loadConfigFromEnvironment;exports.loadConfigFromFile=e.loadConfigFromFile;exports.mergeConfigs=e.mergeConfigs;exports.safeStringify=e.safeStringify;exports.serializeError=e.serializeError;exports.formatLevel=o.formatLevel;exports.formatLogEntry=o.formatLogEntry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./node-jP3ESR8x.js"),e=require("./browser-BzeNXjes.js"),o=require("./formatting-BDuKuXIh.js");exports.NodeLogger=r.NodeLogger;exports.createLogger=r.createLogger;exports.createLoggerForEnvironment=r.createLoggerForEnvironment;exports.getDefaultConfig=r.getDefaultConfig;exports.loadConfigFromEnvironment=r.loadConfigFromEnvironment;exports.loadConfigFromFile=r.loadConfigFromFile;exports.mergeConfigs=r.mergeConfigs;exports.detectRuntime=e.detectRuntime;exports.filterSensitiveData=e.filterSensitiveData;exports.isBrowser=e.isBrowser;exports.isBun=e.isBun;exports.isDeno=e.isDeno;exports.isNode=e.isNode;exports.safeStringify=e.safeStringify;exports.serializeError=e.serializeError;exports.formatLevel=o.formatLevel;exports.formatLogEntry=o.formatLogEntry;
@@ -0,0 +1,46 @@
1
+ import { ILogger, LoggerConfig, LogLevel } from './types';
2
+ /**
3
+ * Factory class for creating logger instances based on the detected runtime.
4
+ */
5
+ export declare class LoggerFactory {
6
+ /**
7
+ * Create a logger instance appropriate for the current runtime.
8
+ * @param config - Optional configuration for the logger
9
+ * @returns A logger instance
10
+ */
11
+ static create(config?: Partial<LoggerConfig>): ILogger;
12
+ /**
13
+ * Create a child logger with additional metadata.
14
+ * @param parent - The parent logger instance
15
+ * @param metadata - Additional metadata to include in all child log messages
16
+ * @returns A new logger instance with the additional metadata
17
+ */
18
+ static createChild(parent: ILogger, metadata: Record<string, any>): ILogger;
19
+ private static mergeConfig;
20
+ }
21
+ /**
22
+ * Convenience function for creating a logger instance.
23
+ * @param config - Optional configuration for the logger
24
+ * @returns A logger instance appropriate for the current runtime
25
+ * @example
26
+ * ```typescript
27
+ * import { createLogger, LogLevel } from 'logan-logger';
28
+ *
29
+ * const logger = createLogger({
30
+ * level: LogLevel.DEBUG,
31
+ * colorize: true
32
+ * });
33
+ *
34
+ * logger.info('Hello world!');
35
+ * ```
36
+ */
37
+ export declare function createLogger(config?: Partial<LoggerConfig>): ILogger;
38
+ /**
39
+ * Create a logger with configuration based on the current environment.
40
+ * Automatically detects production/development/test environments and
41
+ * sets appropriate log levels and formatting.
42
+ * @returns A logger instance configured for the current environment
43
+ */
44
+ export declare function createLoggerForEnvironment(): ILogger;
45
+ export declare function stringToLogLevel(level: string): LogLevel;
46
+ export declare function logLevelToString(level: LogLevel): string;
@@ -0,0 +1,19 @@
1
+ import { ILogger, LogLevel, LogMessage, LogEntry, RuntimeName, LoggerConfig } from './types';
2
+ export declare abstract class BaseLogger implements ILogger {
3
+ protected level: LogLevel;
4
+ protected config: Partial<LoggerConfig>;
5
+ protected runtime: RuntimeName;
6
+ protected childMetadata: Record<string, any>;
7
+ protected constructor(config?: Partial<LoggerConfig>);
8
+ debug(message: LogMessage, metadata?: any): void;
9
+ info(message: LogMessage, metadata?: any): void;
10
+ warn(message: LogMessage, metadata?: any): void;
11
+ error(message: LogMessage, metadata?: any): void;
12
+ log(level: LogLevel, message: LogMessage, metadata?: any): void;
13
+ setLevel(level: LogLevel): void;
14
+ getLevel(): LogLevel;
15
+ child(metadata: Record<string, any>): ILogger;
16
+ protected shouldLog(level: LogLevel): boolean;
17
+ protected abstract writeLog(entry: LogEntry): void;
18
+ protected abstract createChild(): BaseLogger;
19
+ }
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Log levels in ascending order of severity.
3
+ * Used to filter which messages should be logged.
4
+ */
5
+ export declare enum LogLevel {
6
+ /** Debug messages - most verbose */
7
+ DEBUG = 0,
8
+ /** Informational messages */
9
+ INFO = 1,
10
+ /** Warning messages */
11
+ WARN = 2,
12
+ /** Error messages */
13
+ ERROR = 3,
14
+ /** No messages - silent mode */
15
+ SILENT = 4
16
+ }
17
+ /**
18
+ * String representation of log levels.
19
+ */
20
+ export type LogLevelString = 'debug' | 'info' | 'warn' | 'error' | 'silent';
21
+ /**
22
+ * Supported JavaScript runtime environments.
23
+ */
24
+ export type RuntimeName = 'node' | 'deno' | 'bun' | 'browser' | 'webworker' | 'unknown';
25
+ /**
26
+ * Information about the detected JavaScript runtime environment.
27
+ */
28
+ export interface RuntimeInfo {
29
+ /** The name of the runtime */
30
+ name: RuntimeName;
31
+ /** Version string of the runtime (if available) */
32
+ version?: string;
33
+ /** Capabilities supported by this runtime */
34
+ capabilities: RuntimeCapabilities;
35
+ }
36
+ /**
37
+ * Capabilities that a runtime may or may not support.
38
+ */
39
+ export interface RuntimeCapabilities {
40
+ /** Whether the runtime supports file system operations */
41
+ fileSystem: boolean;
42
+ /** Whether the runtime supports colored console output */
43
+ colorSupport: boolean;
44
+ /** Whether the runtime provides process information */
45
+ processInfo: boolean;
46
+ /** Whether the runtime supports streams */
47
+ streams: boolean;
48
+ }
49
+ /**
50
+ * Configuration options for creating a logger instance.
51
+ */
52
+ export interface LoggerConfig {
53
+ /** Minimum log level to output */
54
+ level: LogLevel;
55
+ /** Output format for log messages */
56
+ format: 'json' | 'text' | 'custom';
57
+ /** Whether to include timestamps in log output */
58
+ timestamp: boolean;
59
+ /** Whether to colorize log output (if supported) */
60
+ colorize: boolean;
61
+ /** Default metadata to include with all log messages */
62
+ metadata: Record<string, any>;
63
+ /** Transport configurations for log output */
64
+ transports?: TransportConfig[];
65
+ }
66
+ /**
67
+ * Configuration for a specific log transport (output destination).
68
+ */
69
+ export interface TransportConfig {
70
+ /** Type of transport */
71
+ type: 'console' | 'file' | 'http' | 'custom';
72
+ /** Minimum log level for this transport */
73
+ level?: LogLevel;
74
+ /** Transport-specific options */
75
+ options: Record<string, any>;
76
+ }
77
+ /**
78
+ * A log message can be a string or a function that returns a string.
79
+ * Functions enable lazy evaluation for expensive log message generation.
80
+ */
81
+ export type LogMessage = string | (() => string);
82
+ /**
83
+ * Internal representation of a log entry.
84
+ */
85
+ export interface LogEntry {
86
+ /** When the log entry was created */
87
+ timestamp: Date;
88
+ /** Log level of this entry */
89
+ level: LogLevel;
90
+ /** The log message */
91
+ message: string;
92
+ /** Additional structured data */
93
+ metadata?: Record<string, any>;
94
+ /** Runtime that generated this log entry */
95
+ runtime: RuntimeName;
96
+ }
97
+ /**
98
+ * Main logger interface providing methods for logging at different levels.
99
+ * This interface is implemented by all logger implementations across different runtimes.
100
+ */
101
+ export interface ILogger {
102
+ /**
103
+ * Log a debug message. Only shown when log level is DEBUG.
104
+ * @param message - The message to log (string or lazy function)
105
+ * @param metadata - Optional structured data to include
106
+ */
107
+ debug(message: LogMessage, metadata?: any): void;
108
+ /**
109
+ * Log an informational message.
110
+ * @param message - The message to log (string or lazy function)
111
+ * @param metadata - Optional structured data to include
112
+ */
113
+ info(message: LogMessage, metadata?: any): void;
114
+ /**
115
+ * Log a warning message.
116
+ * @param message - The message to log (string or lazy function)
117
+ * @param metadata - Optional structured data to include
118
+ */
119
+ warn(message: LogMessage, metadata?: any): void;
120
+ /**
121
+ * Log an error message.
122
+ * @param message - The message to log (string or lazy function)
123
+ * @param metadata - Optional structured data to include
124
+ */
125
+ error(message: LogMessage, metadata?: any): void;
126
+ /**
127
+ * Log a message at a specific level.
128
+ * @param level - The log level
129
+ * @param message - The message to log (string or lazy function)
130
+ * @param metadata - Optional structured data to include
131
+ */
132
+ log(level: LogLevel, message: LogMessage, metadata?: any): void;
133
+ /**
134
+ * Set the minimum log level for this logger.
135
+ * @param level - The minimum log level
136
+ */
137
+ setLevel(level: LogLevel): void;
138
+ /**
139
+ * Get the current minimum log level.
140
+ * @returns The current log level
141
+ */
142
+ getLevel(): LogLevel;
143
+ /**
144
+ * Create a child logger with additional metadata.
145
+ * @param metadata - Additional metadata to include in all child log messages
146
+ * @returns A new logger instance with the additional metadata
147
+ */
148
+ child(metadata: Record<string, any>): ILogger;
149
+ }
150
+ /**
151
+ * Interface for logger adapters that handle the actual log output.
152
+ * This abstraction allows different implementations for different runtimes.
153
+ */
154
+ export interface ILoggerAdapter {
155
+ /**
156
+ * Write a log entry to the output destination.
157
+ * @param entry - The log entry to write
158
+ */
159
+ log(entry: LogEntry): void;
160
+ /**
161
+ * Set the minimum log level for this adapter.
162
+ * @param level - The minimum log level
163
+ */
164
+ setLevel(level: LogLevel): void;
165
+ /**
166
+ * Get the current minimum log level.
167
+ * @returns The current log level
168
+ */
169
+ getLevel(): LogLevel;
170
+ }