WithContext add a context to the log entry.
(ctx context.Context)
| 136 | |
| 137 | // WithContext add a context to the log entry. |
| 138 | func (logger *Logger) WithContext(ctx context.Context) *Entry { |
| 139 | entry := logger.newEntry() |
| 140 | defer logger.releaseEntry(entry) |
| 141 | return entry.WithContext(ctx) |
| 142 | } |
| 143 | |
| 144 | // WithTime overrides the time of the log entry. |
| 145 | func (logger *Logger) WithTime(t time.Time) *Entry { |
nothing calls this directly
no test coverage detected