1.0.10 • Published 1 year ago
@vdocdk/nestjs-winston-seq v1.0.10
Installation
npm i @vdocdk/nestjs-winston-seq
- init with config.
Usage
import { LibLoggerConfig, LogWrapperService } from '@vdocdk/nestjs-winston-seq';
const loggerConfig: LibLoggerConfig = {
apiKey: '<apiKey>',//genereated token
serverUrl: '<serverUrl>',//url for the seq server. remembers http(s)://x.x.x.x:5341
defaultMeta: { application: '<application>' }, // optional, just a object
};
const app = await NestFactory.create(AppModule, {
logger: new LogWrapperService(loggerConfig),
});
Author
Jonas Hansen
License
Licensed under the MIT License - see the LICENSE file for details.