# What are "Verbosity logging macros?"

**URL:** <https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 26, 2024, 5:20pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791 "2024-10-26T17:20:03Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 26, 2024, 5:20pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/1 "2024-10-26T17:20:03Z")

</div>

I am getting this warning:

```julia
┌ KiteUtils
│ ┌ Warning: Verbosity logging macros are deprecated as they are not compatible with juliac-compiled programs
│ │ caller = ip:0x0
│ └ @ Core :-1
└  

```

But what are “Verbosity logging macros?” How can I search my code for them?

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [October 26, 2024, 6:09pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/2 "2024-10-26T18:09:05Z")

</div>

`@info` `@warn` `@error` etc.?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 26, 2024, 6:09pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/3 "2024-10-26T18:09:56Z")

</div>

None of them in my code. And what could this mean:

```julia
@ Core :-1

```

?

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [October 26, 2024, 6:22pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/4 "2024-10-26T18:22:24Z")

</div>

Maybe in a dependency?

That line is a Module and (should be a file and) line number for the origin of the warning, but maybe that information isn’t available because of juliac-compilation?

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [October 26, 2024, 6:26pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/5 "2024-10-26T18:26:33Z")

</div>

JuliaHub code search shows the warning is coming from here:

> <https://github.com/JuliaLogging/LoggingExtras.jl/blob/414e0c8136ab51ffb44183cbe7cab59c66d89490/src/verbosity.jl#L17-L19>

---

<div class="post-metadata">

**Author:** ![dgleich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dgleich/32/1494_2.png) [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Post date:** [October 28, 2024, 1:57am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/6 "2024-10-28T01:57:25Z")

</div>

you aren’t the only one! I just started seeing these too…

Currently, I only see them on CI on GitHub. (Julia 1.10)

```julia
Test Summary: | Pass Broken Total Time
duplicate names and overrides | 131 1 132 19.1s
┌ Warning: Verbosity logging macros are deprecated as they are not compatible with juliac-compiled programs
│ caller = ip:0x0
└ @ Core :-1
  2.004 μs (1 allocation: 7.94 KiB)

```

This is right before a BenchmarkTools output… could that be it? (But @time didn’t throw anything…)

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [October 28, 2024, 3:27am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/7 "2024-10-28T03:27:21Z")

</div>

There’s a section written about them

[GitHub - JuliaLogging/LoggingExtras.jl at 414e0c8136ab51ffb44183cbe7cab59c66d89490](https://github.com/JuliaLogging/LoggingExtras.jl/tree/414e0c8136ab51ffb44183cbe7cab59c66d89490?tab=readme-ov-file#verbosity-macros)

Not sure how long that’ll remain the case when they are deprecated. I’m also pretty curious why they’re

> [@dgleich](#):
>
> `not compatible with juliac-compiled programs`

as there is understandably little information about what isn’t or can never be juliac-friendly.

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [October 28, 2024, 8:31am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/8 "2024-10-28T08:31:03Z")

</div>

It’s:

> ```
> @debugv N msg args...
> @infov N msg args...
> @warnv N msg args...
> @errorv N msg args...
> 
> ```
> 
> “Verbose” logging macros. Drop in replacements of standard logging macros, but an additional verbosity level `N` is passed to indicate differing verbosity levels for a given log level. …

From that LoggingExtras.jl package, i.e. nothing (yet, as far as I know) in Julia itself deprecated.

I didn’t even know of these, but they seems useful, why someone made them, so I’m curious why not working for `juliac` as opposed to “standard logging macros” (" `@info` `@warn` `@error` etc."), presumably (or do they actually neither work?).

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [October 29, 2024, 4:11am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/9 "2024-10-29T04:11:04Z")

</div>

The verbosity logging macros were a bit of an experiment for package logging. I wanted a way to selectively turn on some logs for only certain package operations by just passing a simple `verbose=true` like thing to the package operation. It’s surprisingly not a simple problem!

I’ve since come to realize the verbosity macros didn’t actually solve my issue: the `LoggingExtras.withlevel` function indeed makes it much easier to selectively enable logging, but it still enables, for example, debug logging in any _dependent_ packages are also enabled. Sometimes those can be really noisy and hurt the original purpose of package operation logging.

My most recent thinking on the matter is package operation logging should just override the `_group` keyword argument for the normal logging macros, coupled with a convenient addition to the `withlevel` function to filter on specific groups.

---

<div class="post-metadata">

**Author:** ![attdona](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/attdona/32/15859_2.png) [@attdona](https://discourse.julialang.org/u/attdona)\
**Post date:** [October 30, 2024, 6:39am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/10 "2024-10-30T06:39:18Z")

</div>

I’ve tons of this warnings, that now prevents CI to build my package because of long test duration.

[Review · cardo-org/Rembus.jl@7c89c2a · GitHub](https://github.com/cardo-org/Rembus.jl/actions/runs/11581525707/job/32242483945).

I’m not using LoggingExtras.jl directly in my package: I’m using HTTP.jl, that is the only package with the dependency on LoggingExtras.

Note that It seems that this warning is logged only when running tests:

```julia
using Pkg
Pkg.test()

```

How could I fix this issue?

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [October 30, 2024, 7:19am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/11 "2024-10-30T07:19:19Z")

</div>

What version of HTTP.jl are you using? Updating to the latest patch release should fix it AFAIK.

---

<div class="post-metadata">

**Author:** ![attdona](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/attdona/32/15859_2.png) [@attdona](https://discourse.julialang.org/u/attdona)\
**Post date:** [October 30, 2024, 7:26am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/12 "2024-10-30T07:26:12Z")

</div>

I’m using the latest version: HTTP v1.10.9

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [October 30, 2024, 7:58am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/13 "2024-10-30T07:58:57Z")

</div>

> [@attdona](#):
>
> I’m using [HTTP.jl](https://juliahub.com/ui/Packages/General/HTTP), that is the only package with the dependency on LoggingExtras.

Arrow.jl, too. Updating to the latest version, v2.7.4, should fix it.

---

<div class="post-metadata">

**Author:** ![attdona](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/attdona/32/15859_2.png) [@attdona](https://discourse.julialang.org/u/attdona)\
**Post date:** [October 30, 2024, 11:13am UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/14 "2024-10-30T11:13:04Z")

</div>

I don’t see LoggingExtras dependency in Arrow, in any case the Arrow version is the latest v2.7.4.

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [October 30, 2024, 12:08pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/15 "2024-10-30T12:08:00Z")

</div>

> [@attdona](#):
>
> the Arrow version is the latest v2.7.4

CI logs from the link you gave above disagree.

---

<div class="post-metadata">

**Author:** ![attdona](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/attdona/32/15859_2.png) [@attdona](https://discourse.julialang.org/u/attdona)\
**Post date:** [October 30, 2024, 12:32pm UTC](https://discourse.julialang.org/t/what-are-verbosity-logging-macros/121791/16 "2024-10-30T12:32:56Z")

</div>

I see …, and I don’t know why the CI pickups Arrow v2.7.3.

On my local machine I’ve Arrow v2.7.4 and the problem is present.
