@vdocdk/nestjs-winston-seq
v2.0.0
Published
winston seq warpper for nestjs.
Downloads
218
Readme
Installation
npm i @vdocdk/nestjs-winston-seq
- init with config.
Usage
import { LibLoggerConfig, LogWrapperService } from '@vdocdk/nestjs-winston-seq';
const DEFAULT_MODULE_CONFIG: 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.