Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VHarisop opened this issue Aug 1, 2018 · 3 comments
Open

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

VHarisop opened this issue Aug 1, 2018 · 3 comments

Comments

@VHarisop
Copy link

VHarisop commented Aug 1, 2018

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
Copy link

amebru commented Aug 11, 2018

same for me on version 0.6.4

@dawnsong
Copy link

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

  • 143 #override_info(;args...) = (:override_info, true) in args
  • 144 override_info(level::LogLevel;args...) = (:override_info, true) in args

@dawnsong
Copy link

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants