quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.83k stars 2.7k forks source link

Improve documentation on the usage of io.quarkus.logging.Log in extensions #44575

Open mcruzdev opened 3 days ago

mcruzdev commented 3 days ago

Description:

The current Quarkus documentation suggests using Log only in application classes, not in external dependencies. However, Log can work in extension modules if they have a Jandex index, although this behavior might not be reliable.

The documentation doesn’t mention that:

mcruzdev commented 3 days ago

cc: @SergioRuyDev do you like to add it?

Ladicek commented 3 days ago

The stack walk fallback in logging can cause performance issues

That's because that is only supposed to be triggered in test. It doesn't apply to prod mode, where performance is important.

quarkus-bot[bot] commented 3 days ago

/cc @MichalMaler (documentation), @ebullient (documentation), @inoxx03 (documentation), @michelle-purcell (documentation), @rolfedh (documentation), @sheilamjones (documentation), @sunayna15 (documentation)