Customizing APL Logging for ECDs (3.2)

If you want to customize the APL logging when using the log.* APL functions, described in Log and Notification Functions (3.2), you can configure this in your Kubernetes cluster.

To customize the APL logging:

  1. Create a ConfigMap in your Kubernetes cluster.
    This config map should contain your desired logging configuration.

Only the Log4j version 1 syntax is supported.

  1. Add an extraConfigMapMounts configuration for your ConfigMap in your ECD specification as described in Mounting Arbitrary ConfigMaps in ECDs (3.2) , and the apl.custom.log.config system property.

The value of the apl.custom.log.config system property must point to the same path as the ConfigMap file is mounted under.

You can inspect the EC Pod specification by running the following kubectl command:

kubectl exec -it <EC Pod> -- ls -la /mnt/apl-logging