postchain-client
Version:
Client library for accessing a Postchain node through REST.
22 lines (21 loc) • 799 B
TypeScript
export declare enum LogLevel {
Debug = "DEBUG",
Info = "INFO",
Error = "ERROR",
Warning = "WARNING",
Disabled = "DISABLED"
}
export declare function setLogLevel(level: LogLevel): void;
export declare function getLogLevel(): string | undefined;
export declare function debug(message: string, moduleName?: string): void;
export declare function info(message: string, moduleName?: string): void;
export declare function error(message: string, moduleName?: string): void;
export declare function warning(message: string, moduleName?: string): void;
export declare function logger(moduleName: string): {
debug: (message: string) => void;
info: typeof info;
error: typeof error;
warning: typeof warning;
setLogLevel: typeof setLogLevel;
disable: () => void;
};