kmsquire / Logging.jl

Logging package for julia
Other
43 stars 26 forks source link

@Logging.configure throws error in Julia v0.6 #58

Open VHarisop opened 6 years ago

VHarisop commented 6 years ago

When trying to use the logging macros:

julia> using Logging
julia> @Logging.configure(level=INFO)
ERROR: MethodError: no method matching override_info(::Logging.LogLevel)
Closest candidates are:
    override_info(; args...) at /home/vharisop/.julia/v0.6/Logging/src/Logging.jl:143
[vharisop@alwaysbored] julia -v
julia version 0.6.3
amebru commented 6 years ago

same for me on version 0.6.4

dawnsong commented 5 years ago

By simply following the error hint, I modified the function as below which will work with Julia 0.6.4.

dawnsong commented 5 years ago

I found the code in github might not be pushed to julia 0.6.4 package management. If you install Logging directly from the github, it works for 0.6.4, i.e., instead of Pkg.add("Logging"), do Pkg.clone("https://github.com/kmsquire/Logging.jl.git")