UNPKG

@triviality/logger

Version:

Typescript loggers with an interface that support composition

12 lines (8 loc) 214 B
import { LoggerInterface } from '../../src'; export class HalloService { constructor(private logger: LoggerInterface) { } public printHallo(name: string): void { this.logger.info('Hallo', name); } }