Skip to content

Commit 4961fe7

Browse files
authored
Merge pull request #76 from bauglir/add-missing-do
Add missing `do` to `withlevel` README example
2 parents 1bf42b8 + f4340a6 commit 4961fe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ calls. For example:
418418
using LoggingExtras
419419

420420
function complex_user_call(; verbose=0)
421-
LoggingExtras.withlevel(Debug; verbosity=verbose)
421+
LoggingExtras.withlevel(Debug; verbosity=verbose) do
422422
# execute complex function body
423423
@debugv 1 "a level 1 verbosity debug message"
424424
@debugv 2 "a more verbose level 2 debug message"

src/verbosity.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ to the core logging logic as a `LoggingExtras.Verbosity` object.
2424
Note these "verbose" logging messages will only be filtered if a filter logger is used.
2525
A `LoggingExtras.EarlyFilteredLogger`can be used to filter on the `group.verbosity` argument.
2626
For convenience, the
27-
[`LoggintExtras.withlevel(f, level; verbosity)`](@ref) function is provided to temporarily
27+
[`LoggingExtras.withlevel(f, level; verbosity)`](@ref) function is provided to temporarily
2828
wrap the current logger with a log level and verbosity to filter while `f` is executed.
2929
"""
3030

0 commit comments

Comments
 (0)