We are in the process of upgrading to Sitecore 10.1 and we are also changing our infrastructure to use AKS.
I just noticed the the Sitecore logs we get from the pods seems to only include the logs sent through the LogFileAppender (in other words, we only see the logs from the log.{date}.{time}.txt files).
We have some modules that are by default configured to log in their own files (for example Dianoga or Sitecron). When inspecting the pods, I can see their log files on disk, but the content of these files does not show in the pods logs (that we can get using the kubectl logs ${POD_NAME} command or using a tool like k9s).
By changing these modules configuration so that they use the LogFileAppender works. More precisely, this works
<logger name="Sitecron" role:require="ContentManagement">
<appender-ref ref="SitecronLogFileAppender">
<patch:delete />
</appender-ref>
<appender-ref ref="LogFileAppender" />
</logger>
but I was wondering if there is way of doing this at the pod level (or in a more Kubernetes native way). For example, if I could change the way Sitecore configures the pods to also include some other log files would be great.
I hope my question is clear enough! Thanks