quarkiverse / quarkus-logging-json

Quarkus logging extension outputting the logging in json.
Apache License 2.0
62 stars 28 forks source link

io.quarkiverse.jsonlogging - log format is ignored #267

Closed GinaGeorgescul closed 11 months ago

GinaGeorgescul commented 11 months ago

Hello, I am using the

<dependency>
<groupId>io.quarkiverse.loggingjson</groupId>
<artifactId>quarkus-logging-json</artifactId>
<version>2.0.1</version>
</dependency> 

extension in my logging library in order to have json formatted logs. I have also added a custom provider for masking sensitive information and renaming some fields. I notice that the logs regarding startup time, the profile activated etc are not formatted. Eg:

%s%s stopped in %ss
%s %s %s (powered by Quarkus %s) started in %ss. %s 
Profile%s %s activated. %s

When debugging I see that the information is there, however the issue is that the format style is "MESSAGE_FORMAT" (so it doesn't replace the %s)

Do you have any idea about how I could solve this?

GinaGeorgescul commented 11 months ago

The problem was my custom provider