Documentation
¶
Overview ¶
Package log_options_testing captures the lines an endpoint logs, through the logger the services log through, for the endpoints' tests of what their audit lines say.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture runs run with the default logger writing JSON lines into memory, and returns the lines written meanwhile. The logger is utils_go's context logger, as the services build it, so that the lines are what a service's would be: same-named groups merged, and an error the context carries written out.
It swaps the process-wide default logger, so call it only from a test that is not parallel, and from subtests that are not either.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.