Documentation
¶
Overview ¶
Package logs writes visor's leveled log lines.
It is log/slog underneath, and the whole package is the signature: a format string and its arguments, always in that order.
That signature is the point. The framework logger this replaced took an interface{} first argument and reached for Sprintf only when arguments followed, so logs.Info("failed: ", err) produced a line ending in %!(EXTRA *errors.errorString=…) rather than the error — a message that lost the one fact it was written to carry, and lost it at runtime, in the log, where nobody was going to be looking. Requiring a format makes that shape a compile-time fact instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.