Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 2f4b5c3

Browse files
committed
Add browser source log field
This log field allows to distinguish log messages generated by xk6-browser extension.
1 parent 44fce67 commit 2f4b5c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

log/logger.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (l *Logger) Logf(level logrus.Level, category string, msg string, args ...a
9797
return
9898
}
9999
fields := logrus.Fields{
100+
"source": "browser",
100101
"category": category,
101102
"elapsed": fmt.Sprintf("%d ms", elapsed),
102103
}

0 commit comments

Comments
 (0)