1 | import type { LogData } from './LogBox';
|
2 | type LogFunction = (data: LogData) => void;
|
3 | export declare enum LogLevel {
|
4 | warn = 1,
|
5 | error = 2
|
6 | }
|
7 | export type LoggerConfig = {
|
8 | level?: LogLevel;
|
9 | strict?: boolean;
|
10 | };
|
11 | export type LoggerConfigInternal = {
|
12 | logFunction: LogFunction;
|
13 | } & Required<LoggerConfig>;
|
14 | export declare const DEFAULT_LOGGER_CONFIG: LoggerConfigInternal;
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function logToLogBoxAndConsole(data: LogData): void;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare function registerLoggerConfig(config: LoggerConfigInternal): void;
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function replaceLoggerImplementation(logFunction: LogFunction): void;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare function updateLoggerConfig(options?: Partial<LoggerConfig>): void;
|
44 | type LogOptions = {
|
45 | strict?: boolean;
|
46 | };
|
47 | export declare const logger: {
|
48 | warn(message: string, options?: LogOptions): void;
|
49 | error(message: string, options?: LogOptions): void;
|
50 | };
|
51 | export {};
|
52 |
|
\ | No newline at end of file |