Append request and response data in JSON format to a log file. You can also specify
streams (for example, /dev/stdout and /dev/stderr), which is especially useful
when running Kong Gateway in Kubernetes.
This plugin uses blocking I/O, which could affect performance when writing to physical files on slow (spinning) disks.
Important: Log interleaving can occur when logging to
stdout. This happens because data written through a pipe must fit within the pipe buffer, which is typically 4k as defined by the Linux kernel. If the data exceeds this size, the kernel can’t guarantee the atomicity of thewrite()system call, leading to interleaved logs.