doc updates, and relabel ReportMethod
in the Logrus context it's the caller, so use that internally. Label stays as 'method' since in the context of the log event that seems more correct.
This commit is contained in:
@@ -55,7 +55,7 @@ To ensure this behaviour even if a TTY is attached, set your formatter as follow
|
||||
|
||||
If you wish to add the calling method as a field, instruct the logger via:
|
||||
```
|
||||
log.SetReportMethod(true)
|
||||
log.SetReportCaller(true)
|
||||
```
|
||||
This adds the caller as 'method' like so:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user