如何在Cloudbees上使用logback [英] How to use logback on Cloudbees

查看:191
本文介绍了如何在Cloudbees上使用logback的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在Cloube上使用自己的logback配置,
我有一个 default.logback.xml 文件,工作完全正常在本地,但是一旦我部署到Cloudbees,它被忽略。

解决方案

登录CloudBees是通过stdout和stderror - 这些是管道通过syslog-ng到各种系统(不是所有这些都是基于文件的) - 所以你可以根据需要配置日志记录 - 但是如果你希望你的日志被管理 - 最好确保事情最终在stdout和stderr中。 / p>

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.

解决方案

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.

这篇关于如何在Cloudbees上使用logback的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆