How to use logback on Cloudbees

2019-04-15 08:20发布

问题:

I would like to know if it's possible to use my own logback configuration on Cloubees, I have a default.logback.xml file that works perfectly fine in local, but once I deploy to Cloudbees its being ignored.

回答1:

Logging in CloudBees is via stdout and stderror - these are piped via syslog-ng to various systems (not all of which are file based) - so you can configure logging things as you want - but if you want your logs managed - it is best to ensure that things end up in stdout and stderr.