We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.New
1 parent 8cf34d2 commit e7207edCopy full SHA for e7207ed
internal/log/logger.go
@@ -34,6 +34,9 @@ func New(options ...Option) *Logger {
34
// It can use a different writer, but it is expected to use the
35
// same writer since it is thread safe.
36
func (l *Logger) New(options ...Option) *Logger {
37
+ l.mutex.Lock()
38
+ defer l.mutex.Unlock()
39
+
40
var childSettings settings
41
childSettings.mergeWith(l.settings)
42
childSettings.mergeWith(newSettings(options))
0 commit comments