-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: support-core-plugin
-
None
-
support-core:1461.v3ed77a_a_8e1c4
When adding log recorders with CasC:
jenkins:
log:
recorders:
- loggers:
- level: "ALL"
name: "org.csanchez.jenkins.plugins.kubernetes"
name: "kubernetes"
The logger is properly loaded and configured. But the file $JENKINS_HOME/logs/custom/kubernetes.log is not created..
Upon Controller restart, then it works..
Evidence
The configuration as code initialization kicks off after the CustomLogs component initialization:
INFO jenkins.model.Jenkins$5#runTask: Took 36194ms for CustomLogs.startCustomHandler by pool-6-thread-18 [...] INFO jenkins.model.Jenkins$5#runTask: Took 63003ms for ConfigurationAsCode.init by pool-6-thread-
And CustomLogs initialization store a reference of the list of recorders that is obsolete
I think this is caused by: