update readme, logger logs in json format
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sergo
2024-02-24 17:21:32 +02:00
parent c6e74cca90
commit 4b78256ae2
6 changed files with 34 additions and 30 deletions

View File

@@ -1,10 +1,7 @@
// For more information about this file see https://dove.feathersjs.com/guides/cli/logging.html
import { createLogger, format, transports } from 'winston';
// Configure the Winston logger. For the complete documentation see https://github.com/winstonjs/winston
export const logger = createLogger({
// To see more detailed errors, change this to 'debug'
level: 'info',
format: format.combine(format.splat(), format.simple()),
format: format.combine(format.splat(), format.json()),
transports: [new transports.Console()],
});

View File

@@ -2,7 +2,7 @@ import type { NullableId, Params, ServiceInterface } from '@feathersjs/feathers'
import type { Application } from '../../declarations';
import wildDuckClient from '../../clients/wildduck.client';
import { faker, th } from '@faker-js/faker';
import { faker } from '@faker-js/faker';
import { BadRequest } from '@feathersjs/errors';
import config from 'config';