Skip to content

Commit

Permalink
edit readme for GOLOG_LOG_CALLER_FORMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
zenzenless committed Sep 5, 2024
1 parent a1bb802 commit adb9958
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ pairs. For example, the following add `{"app": "example_app", "dc": "sjc-1"}` to
export GOLOG_LOG_LABELS="app=example_app,dc=sjc-1"
```

#### `GOLOG_LOG_CALLER_FORMAT`

Specifies the file line format.

- `full` Serializes a caller in /full/path/to/package/file:line.
- `short` serializes a caller in package/file:line format, trimming all but the final directory from the full path.
```bash
export GOLOG_LOG_CALLER_FORMAT="full"
```

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/go-log/issues)!
Expand Down

0 comments on commit adb9958

Please sign in to comment.