Closed ronaldpetty closed 2 months ago
The part I am hung up on (I think) is "this is not fired in a goroutine ..". I think it implies "Note that Levels() is not fired during calls to log (e.g. logger.info), you should handle such ...". I was confused because "main" is a goroutine and Levels is called when adding hooks. But later, when calling logger.info for example, Levels is not called (in a goroutine or non-goroutine).
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
I think I am misreading the following. It sounds to me that the Fire() method would not be called if in a goroutine. From my testing it seems that they are called. Or is this saying that Levels() is not checked and Fire simply happens and we should run Levels to see if want to log and in turn Fire in a goroutine? Sorry for my confusion.