Mayil-SB-Internal-Prod / loguru-II

MIT License
0 stars 0 forks source link

Question duplicate the warning (hashtag1061) #50

Open vikramsubramanian opened 6 months ago

vikramsubramanian commented 6 months ago

Hi, I have some code that does warnings.warn. I wonder if there is some setting in loguru that would detect warnings.warn raised in other part of the code and record it in the log file? Thanks. Or I have to do both? Like

from loguru import logger
import warning
warning.warn('XXX')
logger.warn('XXX')

)