mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
22 lines
487 B
TypeScript
22 lines
487 B
TypeScript
export default class Logger {
|
|
public static log(...args: any[]) {
|
|
Logger.dispatch("log", ...args)
|
|
}
|
|
|
|
public static debug(...args: any[]) {
|
|
Logger.dispatch("debug", ...args)
|
|
}
|
|
|
|
public static warn(...args: any[]) {
|
|
Logger.dispatch("warn", ...args)
|
|
}
|
|
|
|
public static error(...args: any[]) {
|
|
Logger.dispatch("error", ...args)
|
|
}
|
|
|
|
private static dispatch(verb: string, ...args: any[]) {
|
|
console[verb](...args)
|
|
}
|
|
}
|