hive-keychain-commons
Version:
Platform-agnostic functions used in Hive Keychain mobile and extensions
19 lines (18 loc) • 516 B
TypeScript
interface LoggerLevel {
[level: string]: number;
}
export interface LoggerConfig {
levels: LoggerLevel;
folder?: string;
file?: string;
}
declare const Logger: {
info: (message: string) => void;
warn: (message: string) => void;
error: (message: any, stacktrace?: Error) => void;
technical: (message: string) => void;
operation: (message: string) => void;
debug: (message: string) => void;
initLogger: (config: LoggerConfig, env: string) => void;
};
export default Logger;