ws2801-webserver
Version:
A ready-to-use webserver for the WS2801-Pi package.
14 lines (11 loc) • 334 B
text/typescript
export class Logger {
private appName: string = 'WS2801-webserver';
private moduleName: string;
constructor(moduleName: string) {
this.moduleName = moduleName;
}
public log(text: string): void {
// tslint:disable-next-line: no-console
console.log(`${this.appName} | ${this.moduleName} | ${text}`);
}
}