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

Application of faces to logging macros doesn't seem to work #96

Open
Amval opened this issue Sep 25, 2024 · 1 comment
Open

Application of faces to logging macros doesn't seem to work #96

Amval opened this issue Sep 25, 2024 · 1 comment

Comments

@Amval
Copy link

Amval commented Sep 25, 2024

Hello, I am trying to use StyledStrings with the logging macros (@info, @debug in particular).

In the documentation there is this example:

julia> StyledStrings.withfaces(:log_info => [:magenta, :italic]) do
          @info "Hello there"
      end
[ Info: Hello there

which doesn't seem to apply. I am not able to make it work either. For reference, my local setup:

Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M2
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4
  JULIA_DEBUG = nothing

Is this not supported yet or perhaps just not in Julia 1.10? Thanks in advance.

@tecosaur
Copy link
Collaborator

This was a 1.11+ thing, but JuliaLang/julia#51829 was reverted when ConsoleLogging was moved to Base since printing of Base.AnnotatedStrings isn't in Base, and so this example no longer works.

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

2 participants