This is a big change (thus the jump to 1.50) in the library/api code. Packages have moved for better re-usabilty and letting projects reuse more of fortio components without pulling in everything.
The log
, dflag
, and version
packages have moved out for fortio.org/fortio into their own toplevel.
Change summary for callers/users of fortio log / dflag / version:
- Remove
/fortio
in the imports. egfortio.org/fortio/log
becomesfortio.org/log
- Replace
log.SetFlagDefaultsForClientTools()
bylog.SetDefaultsForClientTools()
(for cli) - Replace
log.ChangeFlagsDefault()
bydynloglevel.ChangeFlagsDefault()
fhttp.LogRequest
is now in the top levellog
package.- Add either
log.LoggerStaticFlagSetup()
(cli) ordynloglevel.LoggerFlagSetup()
(servers/dflag users, the package isfortio.org/dflag/dynloglevel
)
You will also notice the flags are cleaner now, not showing up by just using some library code (in fnet
or fhttp
). Conversly if you want to assign a flag to these parameter use the new dflag.Flag("flagname", fnet.ConfigVar)
in your main
What's Changed
- moved logger to toplevel fortio.org/log, dflag and version - avoid flags in library modules (#706)
- Dependabot and other dependency updates
Full Changelog: v1.40.1...v1.50.0