Logging format not applied to String named logger when run as a Lambda function? #48601
-
I'm using Quarkus for AWS Lambda functions. I'm also using the json-logging extension but the following is also true for a custom format set in the When I create a logger using a String (name) rather than a I wonder if I miss something? If it's an issue I'm happy to create a GitHub issue and try to reproduce it in a sample-application. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
/cc @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda) |
Beta Was this translation helpful? Give feedback.
-
It could be an issue; a reproducer would be needed to tell for sure though. |
Beta Was this translation helpful? Give feedback.
-
I did some more research on my issue and found out that the issue arises from the library I am using (open-html-to-pdf) and the class-preloading mechanism from Quarkus: The logging-system from the library will initialize itself and replace all handlers and formats from its loggers. Therefore it's not an issue of Quarkus but how the library handles logging. The solution I came up with is that I will remove the handlers/formatters (again) and re-apply the Quarkus handler. |
Beta Was this translation helpful? Give feedback.
I did some more research on my issue and found out that the issue arises from the library I am using (open-html-to-pdf) and the class-preloading mechanism from Quarkus: The logging-system from the library will initialize itself and replace all handlers and formats from its loggers. Therefore it's not an issue of Quarkus but how the library handles logging.
The solution I came up with is that I will remove the handlers/formatters (again) and re-apply the Quarkus handler.