I'm creating a log function that will log my errors in a file.
I thought it will contain which class and method the error occurred in.
Is there a way of logging in which class and method the error occurred in so I don't have to type it manually each time?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…