[FOLIO-2465] Update log4j2 configuration for k8s ci okapi Created: 19/Feb/20  Updated: 03/Jun/20

Status: Open
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: TBD
Reporter: Ian Hardy Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: devops, devops-backlog
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint:
Development Team: FOLIO DevOps

 Description   

Update okapi role in folio ansible, and okapi deployment in folio k8s to have better logging (missing dates), use something like this as config map to log4j2.xml:

apiVersion: v1
kind: ConfigMap
metadata:
  name: okapi-log4j2-xml
  namespace: "folio-default"
data:
  log4j2.xml: |
    <Configuration status="WARN" monitorInterval="30">
      <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
          <PatternLayout pattern="%d{ISO8601} %-5p %-20.20C{1} %m%n"/>
        </Console>
      </Appenders>
      <Loggers>
        <Root level="INFO">
          <AppenderRef ref="Console"/>
        </Root>
      </Loggers>
    </Configuration>

Generated at Thu Feb 08 23:20:50 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.