annotation Logbuch::Annotations::LogAccept

Overview

Lists exceptions that end a traced method's call like a result: @[LogAccept(KeyError, :info)] logs a KeyError on the exit line, at :info (the method's level by default; Log::Severity::Info works too), and the method raises it again. With stacktrace: true (false by default), the exit line carries the exception. A method can carry several; the most specific type wins. On a method without @[Logged], it traces the method, as a @[Logged] without arguments does.

Defined in:

logbuch/annotations.cr