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:
Dave Clendenan
2016-11-29 09:35:34 -08:00
parent 1e21450408
commit 348bace269
9 changed files with 37 additions and 39 deletions
+1 -1
View File
@@ -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: