Skip to content
Discussion options

You must be logged in to vote

When using the Winston logger you can configure logger.ts to the log level you need according to the usage[ in tests. For example to remove all transports you'd do

import { logger } from '../logger'

logger.clear()

// Or to temporarily disable logging
logger.level = false

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sokulski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants