This commit is contained in:
2024-05-20 01:15:45 +02:00
commit 7eb9f4ad8b
4 changed files with 76 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import logger, {Level, type Writer, type WriterOptions} from 'log'
export * as log from 'log'
export default logger
export class Ntfy implements Writer {
readonly _options: WriterOptions & { url: string, token?: string };
public constructor(options: WriterOptions & { url: string, token?: string }) {
this._options = options
}
public log(_level: Level, ...data: any[]) : void {
throw "todo"
}
get options() : WriterOptions {
return this._options;
}
}