Returns the markers used by the flow logger method on entry.
Returns the markers used by the flow logger method on entry.
the source info
the entry markers, empty by default.
Creates an entry statement, if specified.
Creates an entry statement, if specified.
the source info
the entry statement, None by default.
Provides exit markers for the predicate.
Provides exit markers for the predicate.
the source info
exit markers, empty by default.
Returns an exit statement, using the result value and the source.
Returns an exit statement, using the result value and the source.
the result of the flow.
the source info
the statement, None by default.
Returns a tuple describing the statement and the level to log the exception at; if you
return (Level.ERROR, statement)
then it will log the exception at error level, for example.
Returns a tuple describing the statement and the level to log the exception at; if you
return (Level.ERROR, statement)
then it will log the exception at error level, for example.
the throwable returned from flow
the source info
a tuple containing the statement and the level to execute the throwing statement.
A type class that is used to provide a behavior to a logging flow.
You can implement your own behavior and place it in scope for the code that you're using:
You can use the
createEntryStatement
to start a timer and then complete it on exit/throwing, or use the flow as hooks into the tracing framework.