vy commented on issue #2722: URL: https://github.com/apache/logging-log4j2/issues/2722#issuecomment-2218431608
@kojinoguchi, `SimpleLayout` is by design a no-op. When a Log4j 1 configuration is read, `SimpleLayout` component will be replaced with a `PatternLayout` – see `SimpleLayoutBuilder` responsible for this transformation. But since you access the element programmatically, which is discouraged!<sup>1</sup>, you get the no-op component. In short, your **Log4j 1 configurations using `SimpleLayout` will work**. <sup>1</sup> Log4j Core treats the configuration file as the public API. Even though we do our best to keep the binary backward compatibility for publicly visible classes, fields, etc. in the code, we don't give the same guarantee that we give for the configuration file syntax. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
