postchain-client
Version:
Client library for accessing a Postchain node through REST.
25 lines (24 loc) • 881 B
TypeScript
export declare enum LogLevel {
Debug = "DEBUG",
Info = "INFO",
Error = "ERROR",
Warning = "WARNING",
Disabled = "DISABLED"
}
declare function setLogLevel(level: LogLevel): void;
/** @deprecated */
declare function setLogLevel(level: number): void;
declare function getLogLevel(): number;
declare function debug(message: string, moduleName?: string): void;
declare function info(message: string, moduleName?: string): void;
declare function error(message: string, moduleName?: string): void;
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;
};
export { debug, info, error, warning, setLogLevel, getLogLevel };