-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Replace LowLevelLogUtil
with a more sophisticated bootstrap logger
#2204
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
Comments
@jvz, do we really need this sophistication? Both
Note the similarity to Spring's I have a feeling this single-class-file design will not only greatly simplify the code, but will also serve all existing use cases. This will render the @jvz, WDYT? |
Hmm, that's an interesting proposal! I can try your idea out. The main purpose of my proposal is to make it easier to configure logging there as |
Reading what you said a little more closely, are you thinking we can replace |
|
There are several good reasons: It is bloated, difficult to implement, and extending from
It won't, because I propose a self-contained Let me make it clear: the I would like to submit a PR for this if there are no objections. |
Works for me! Since we're using Java 17, you can even make |
Update: I'm going to update |
Superseded by #2221 |
This was something I experimented with in the spi-updates branch. Essentially, the strategy used by the low-level logging util should be an interface that begins with a simple implementation that enqueues status data elements until this reference is replaced with a
StatusLogger
-backed version onceStatusLogger
has been initialized. This would drain the accumulated status data to the logger.Such an API would look something like this (abbreviated):
This could potentially be changed to log a
StatusData
object or a newly defined object for bootstrap messages. In any case, this API should be internal tolog4j-api
(i.e., not exported in the module) as it's only relevant for classes involved in bootstrapping.The text was updated successfully, but these errors were encountered: