Skip to content

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

Open
@Amval

Description

@Amval

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions