Here is the default logback.xml file from an AWI v24.4 pod:
<configuration>
<!-- Logging configuration file. No changes necessary, unless directedy by Automic Support -->
<!-- copied from ecc-framework-webapp/src/main/webapp/config/logback.xml by build process -->
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${AWI_LOG_FILE_PATH:-}${HOSTNAME}_${app_name:-AWI}_LOG_00.txt</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${AWI_LOG_FILE_PATH:-}${HOSTNAME}_${app_name:-AWI}_LOG_0%i.txt</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>800MB</maxFileSize>
</triggeringPolicy>
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%date{ISO8601} %-22(%.22thread) [%-5(%level)] %X{session.ae.system:-NOLOGIN}/%X{session.ae.user:--} %X{session.ui:-NOUI} %X{session.ae.id} %X{perflogger.id} [%.100logger] - %msg%n</pattern>
</layout>
</encoder>
</appender>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%date{ISO8601} %-22(%.22thread) [%-5(%level)] %X{session.ae.system:-NOSESSION}/%X{session.ae.user:--} %X{session.ui:-NOUI} %X{session.ae.id} %X{perflogger.id} [%.40logger] - %msg%n</pattern>
</layout>
</encoder>
</appender>
<!-- Configure async appenders with a 2000 entries queue. if the IO blocks or is too slow, and queue is half full, only warn/error will be logged -->
<appender name="LOGGER" class="ch.qos.logback.classic.AsyncAppender">
<queueSize>2000</queueSize>
<discardingThreshold>1000</discardingThreshold>
<appender-ref ref="${AWI_LOGBACK_APPENDER:-console}" />
</appender>
<!-- Log level is set here. Possible values: TRACE, DEBUG, INFO, WARN, ERROR
DEBUG is recommended on testing and development instances.
INFO is recommended on production instances.
-->
<root level="INFO">
<appender-ref ref="LOGGER" />
</root>
<!-- trace loggers for Automation Engine - Change log level in uc4config.xml -->
<logger name="com.uc4.ecc.framework.core.aetracing" level="INFO" additivity="false">
<appender-ref ref="LOGGER" />
</logger>
<logger name="ECC BOOT" level="INFO" additivity="false">
<appender-ref ref="LOGGER" />
</logger>
<!-- performance logger - enable this to trace the performance of ecc -->
<logger name="com.uc4.webui.performance" level="OFF" additivity="false">
<appender-ref ref="LOGGER" />
</logger>
<!-- VaadinSessionLockUtil: logs known issues in thread handling. do not show stacktrace by default. -->
<logger name="com.uc4.ecc.framework.core.async.VaadinSessionLockUtil" level="INFO" additivity="false">
<appender-ref ref="LOGGER" />
</logger>
<!-- Push handler logs non-errors on error level, turn it off. If you experience any push/connection related problems, enable this temporarily -->
<logger name="com.vaadin.server.communication.PushHandler" level="OFF" additivity="false" />
<logger name="org.atmosphere.cpr.AtmosphereFramework" level="OFF" additivity="false" />
<logger name="org.apache.http.wire" level="OFF" additivity="false" />
<!-- activate for trace logging for the ECC servlet
<logger name="com.uc4.webui.vaadin.framework.servlet" level="TRACE" additivity="false" >
<appender-ref ref="LOGGER" />
</logger>
-->
</configuration>
Here we see two environment variables:
AWI_LOGBACK_APPENDER
AWI_LOG_FILE_PATH
AWI_LOGBACK_APPENDER
is set to file. This is probable inherited from the pod definition. E.g.,
awi:
resources:
requests:
memory: "8G"
cpu: "250m"
limits:
memory: "14G"
cpu: "500m"
logging:
log: "file"
pvc: "aake-pvc-logs"
. . .
AWI_LOG_FILE_PATH
is set to temp/. This is probably the default. The AWI runs in the directory /usr/awi, so the logs are written to /usr/awi/temp.
The logging level is not set based on a variable, but is hard-coded in this line:
<root level="INFO">
It is unclear how one would set the default logging level without modifying the logback.xml file.