Attribute Macro loggy::scope

source ·
#[scope]
Expand description

Mark a function as a scope.

To use this, prefix the test with #[loggy::scope] or #[loggy::scope("name")]. All log messages generated in the code invoked by the function will be prefixed by the scope name (by default, the function name) instead of the default (module name).

Panics

If the code invoked by the function generated any error messages.