Skip to content

Commit

Permalink
Add tag info in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jul 1, 2024
1 parent a9ddbaf commit 22342d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,11 @@ It does this by defaulting to the bundle provided by `golang.org/x/crypto/x509ro
See https://github.com/fortio/multicurl for a good example.
If you do not want this behavior, build using `-tags no_tls_fallback`.
### Small binaries
If you application doesn't do http request/response logging at all, use `-tags no_http` or `-tags no_net` (that one will also imply `no_tls_fallback`) and save 1.1 Mbyte in your binary's size (because the linker isn't smart enough to see net/http isn't actually used)
And, if you don't need any of the advanced JSON logging (which is quite likely with a cli), use `-tags no_json` the logger will still produce json structured logging just not as advanced if what you log are deep structures - this saves another 130k or so.
These tags from from [fortio.org/log](https://github.com/fortio/log) v1.14 and later

0 comments on commit 22342d1

Please sign in to comment.