nestjs-log-module
v1.0.1
Published
### combine winston
Downloads
3
Readme
nestjs-log-module
combine winston
how use
// app.module.ts file add impots
import { addDefaultContainer } from 'nestjs-log-module';
LoggerModule.forRoot({
logHttp: {},
initWinston: async (winston) => {
return [
addDefaultContainer(),
]
}
}),
how join container
// addContainer id winston options
import { addContainer } from "nestjs-log-module";
addContainer("id", {});
how use at modules
import { InjectWinston, CustomLogger } from 'nestjs-log-module';
constructor(){
@InjectWinston() private readonly logger: CustomLogger
}