Merge pull request #4687 from adamdmharvey/debug-log

feat(backend-commmon): Change debug color to grey
This commit is contained in:
Fredrik Adelöw
2021-02-24 20:21:22 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Change debug log format to print as color grey
@@ -34,7 +34,7 @@ const coloredTemplate = (info: TransformableInfo) => {
export const coloredFormat = winston.format.combine(
winston.format.timestamp(),
winston.format.colorize({
colors: { timestamp: 'dim', prefix: 'blue', field: 'cyan' },
colors: { timestamp: 'dim', prefix: 'blue', field: 'cyan', debug: 'grey' },
}),
winston.format.printf(coloredTemplate),
);