@mcp-com-ai/shared-utils 1.0.1-beta.260912

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.
@@ -0,0 +1,18 @@
1
+ export type LogLevel = 'error' | 'warn' | 'info' | 'http' | 'verbose' | 'debug' | 'silly';
2
+ export type LoggerLike = {
3
+ log: (level: LogLevel | string, ...args: unknown[]) => void;
4
+ info: (...args: unknown[]) => void;
5
+ warn: (...args: unknown[]) => void;
6
+ error: (...args: unknown[]) => void;
7
+ debug: (...args: unknown[]) => void;
8
+ [key: string]: unknown;
9
+ };
10
+ export interface CreateLoggerOptions {
11
+ projectname: string;
12
+ /** Override the log directory. Defaults to $HAPI_HOME/logs or $LOG_DIR. */
13
+ logDir?: string;
14
+ /** Disable file logging even when the runtime supports it. */
15
+ disableFileLogs?: boolean;
16
+ }
17
+ export declare function createLogger(projectnameOrOptions: string | CreateLoggerOptions): LoggerLike;
18
+ export declare const logger: LoggerLike;