UNPKG

@triviality/logger

Version:

Typescript loggers with an interface that support composition

13 lines (11 loc) 315 B
import { ContainerFactory } from '@triviality/core'; import { MyFeature } from './Feature/MyFeature'; import { DefaultLoggerFeature } from '../src'; ContainerFactory .create() .add(DefaultLoggerFeature) .add(MyFeature) .build() .then((container) => { container.halloService.printHallo('Jane'); });