Closed ProvocaTeach closed 6 months ago
Julia no longer uses functions (at least in the public API) for logging. The code in the current version of the book is broken:
julia> warn("You're not looking too good. Best check yourself.") ERROR: UndefVarError: `warn` not defined Stacktrace: [1] top-level scope @ REPL[9]:1
Now, messages are emitted by the macro @logmsg (and its variants @info, @warn, and @debug). I updated this section to reflect the change.
@logmsg
@info
@warn
@debug
Julia no longer uses functions (at least in the public API) for logging. The code in the current version of the book is broken:
Now, messages are emitted by the macro
@logmsg
(and its variants@info
,@warn
, and@debug
). I updated this section to reflect the change.