mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 14:28:49 +09:00
spec(backend): severityのラベルをJSON形式のログに追加 (MisskeyIO#425)
This commit is contained in:
parent
258a17cb64
commit
235d8d9433
@ -31,6 +31,9 @@ export default class Logger {
|
||||
timestamp: envOption.withLogTime || envOption.logJson ? pino.stdTimeFunctions.isoTime : false,
|
||||
messageKey: 'message',
|
||||
errorKey: 'error',
|
||||
formatters: {
|
||||
level: (label, number) => ({ severity: label, level: number }),
|
||||
},
|
||||
mixin: () => ({ cluster: cluster.isPrimary ? 'primary' : `worker#${cluster.worker!.id}` }),
|
||||
transport: !envOption.logJson ? {
|
||||
target: 'pino-pretty',
|
||||
|
Loading…
Reference in New Issue
Block a user