roleplayer
Version:
A library for building table top role playing game worlds, and managing campaigns in those worlds
22 lines (16 loc) • 346 B
text/typescript
import { Console } from "console";
export class ConsoleLogger {
console: Console;
constructor() {
this.console = new Console(process.stdout);
}
info(...args: any[]) {
this.console.info(...args);
}
debug(...args: any[]) {
this.console.debug(...args);
}
warn(...args: any[]) {
this.console.warn(...args);
}
}