-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
43 lines (41 loc) · 1.23 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
/**
* Configuration options for the logger
* @param {string} [level] - Log level (trace, debug, info, warn, error). Defaults to "info"
* @param {boolean} [json] - Whether to output logs in JSON format. Defaults to false
*/
export interface LoggerOptions {
level?: string
json?: boolean
}
export declare class Logger {
/**
* Creates a new logger instance
* @param {string} name - The name of the service that will be displayed in logs
* @param {LoggerOptions} [options] - Configuration options for the logger
* @returns {Logger} A new Logger instance
*/
constructor(name: string, options?: LoggerOptions | undefined | null)
/**
* Logs a debug message
* @param {string} message - The message to log at debug level
*/
debug(message: string): void
/**
* Logs an info message
* @param {string} message - The message to log at info level
*/
info(message: string): void
/**
* Logs a warning message
* @param {string} message - The message to log at warn level
*/
warn(message: string): void
/**
* Logs an error message
* @param {string} message - The message to log at error level
*/
error(message: string): void
}