Skip to content

Commit 9d91fe9

Browse files
fix(shared): remove GCP logging transport (#1727)
Remove GCP logging transport
1 parent 50443c0 commit 9d91fe9

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

packages/shared/backend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"ioredis": "^5.4.1"
2222
},
2323
"dependencies": {
24-
"@google-cloud/logging-winston": "^6.0.0",
2524
"awilix": "^11.0.4",
2625
"express": "^4.21.0",
2726
"objection": "^3.1.5",

packages/shared/backend/src/configs/logger.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createLogger, format, LoggerOptions, transports } from 'winston'
2-
import { LoggingWinston } from '@google-cloud/logging-winston'
32

43
export const initLogger = (nodeEnv?: string) => {
54
nodeEnv = nodeEnv || 'development'
@@ -9,11 +8,6 @@ export const initLogger = (nodeEnv?: string) => {
98
})
109
]
1110

12-
if (nodeEnv === 'production') {
13-
const loggingWinston = new LoggingWinston()
14-
loggerTransports.push(loggingWinston)
15-
}
16-
1711
return createLogger({
1812
silent: nodeEnv === 'test',
1913
format: format.combine(

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)