mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
21 lines
402 B
TypeScript
21 lines
402 B
TypeScript
import { Notice } from "obsidian";
|
|
|
|
class Logger {
|
|
|
|
public error(e:any):any {
|
|
new Notice("Douban Plugin Error: " + e);
|
|
return e;
|
|
}
|
|
|
|
public warn(e:any):any {
|
|
new Notice("Douban Plugin Warn: " + e);
|
|
return e;
|
|
}
|
|
|
|
public info(e:any):any {
|
|
console.log("Douban Plugin Warn: " + e);
|
|
return e;
|
|
}
|
|
}
|
|
|
|
export const log:Logger = new Logger(); |