chrisvoncsefalvay / learn-julia-the-hard-way

Learn Julia the hard way!
https://app.gitbook.com/@chrisvoncsefalvay/s/learn-julia-the-hard-way/
Other
772 stars 153 forks source link

Update info and warn section to reflect new macro log system #75

Closed ProvocaTeach closed 6 months ago

ProvocaTeach commented 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.