Make Appender Name available to Custom Layout

Description

The getName() method is available within Appenders, and is used, for example, by the FileAppender, in its standard logMessage().

When trying to customize a FileAppender layout, with a Custom Layout, the name if of the appender isn't available. It seems this would be a useful addition.

Activity

Show:

Luis MajanoFebruary 14, 2023 at 2:20 PM

Actually, each Layout object has the appender available as a property. So you can just do getAppender().getName()

Won't Do
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Sentry

Created October 15, 2021 at 8:39 PM
Updated August 3, 2023 at 4:11 PM
Resolved August 3, 2023 at 4:11 PM