I have asked a question previously and can confirm that the log settings can be customized.
Thank you.
https://community.axonivy.com/d/694-output-all-logs-to-standard-output
I have an additional question.
Logs are output in a pattern layout by default, but we would like to output them in a structured JSON template layout.
In a production environment, I want to use JSON output ready to be delivered to log ingestion systems.
https://logging.apache.org/log4j/2.x/manual/layouts.html#pattern-layout
I tried to set this up and got an error, but is there any way to make it available?
log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug">
<Appenders>
<Console name="ConsoleLog" target="SYSTEM_OUT">
<ThresholdFilter level="info" />
<JsonTemplateLayout eventTemplateUri="classpath:EcsLayout.json" />
</Console>
</Appenders>
<Loggers>
<Logger name="ch.ivyteam.ivy.config" level="info" includeLocation="false" additivity="false">
<AppenderRef ref="ConsoleLog" />
</Logger>
</Loggers>
</Configuration>
ivy.log
[2024-11-18 01:11:38.073][ERROR][ch.ivyteam.ivy.logging.LoggingSetup][Logging Configuration File Watcher]{}
Log4j configuration problem: Console contains an invalid element or attribute "JsonTemplateLayout"