added cache and started fixing data-service
This commit is contained in:
parent
3fc123eca3
commit
d0e8fd9e3f
15 changed files with 1761 additions and 98 deletions
|
|
@ -163,14 +163,14 @@ function buildLogger(serviceName: string, options?: {
|
|||
});
|
||||
|
||||
const loggerConfig: pino.LoggerOptions = {
|
||||
level: PINO_LEVELS[level] ? level : 'info',
|
||||
customLevels: PINO_LEVELS,
|
||||
// level: PINO_LEVELS[level] ? level : 'info',
|
||||
// customLevels: PINO_LEVELS,
|
||||
useOnlyCustomLevels: false,
|
||||
timestamp: () => `,"timestamp":"${new Date().toISOString()}"`,
|
||||
formatters: {
|
||||
level: (label: string) => ({ level: label }),
|
||||
bindings: () => ({})
|
||||
},
|
||||
// formatters: {
|
||||
// level: (label: string) => ({ level: label }),
|
||||
// bindings: () => ({})
|
||||
// },
|
||||
base: {
|
||||
service: serviceName,
|
||||
environment: loggingConfig.LOG_ENVIRONMENT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue