本文整理了Java中ch.qos.logback.core.rolling.RollingFileAppender.rawFileProperty
方法的一些代码示例,展示了RollingFileAppender.rawFileProperty
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RollingFileAppender.rawFileProperty
方法的具体详情如下:
包路径:ch.qos.logback.core.rolling.RollingFileAppender
类名称:RollingFileAppender
方法名:rawFileProperty
暂无
代码示例来源:origin: gocd/gocd
public static void rollingPolicyForAppender(RollingFileAppender rollingFileAppender, String maxFileSize, String totalSizeCap, int maxHistory) {
SizeAndTimeBasedRollingPolicy rollingPolicy = new SizeAndTimeBasedRollingPolicy();
rollingPolicy.setContext(LOGGER_CONTEXT);
rollingPolicy.setMaxHistory(maxHistory);
rollingPolicy.setMaxFileSize(FileSize.valueOf(maxFileSize));
rollingPolicy.setTotalSizeCap(FileSize.valueOf(totalSizeCap));
rollingPolicy.setFileNamePattern(rollingFileAppender.rawFileProperty() + ".%d{yyyy-MM-dd}.%i.gz");
rollingPolicy.setParent(rollingFileAppender);
rollingFileAppender.setRollingPolicy(rollingPolicy);
rollingPolicy.start();
}
代码示例来源:origin: camunda/camunda-bpm-platform
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: tony19/logback-android
@Test
public void testPrudentModeLogicalImplications() {
rfa.setContext(context);
// prudent mode will force "file" property to be null
rfa.setFile("some non null value");
rfa.setAppend(false);
rfa.setPrudent(true);
tbrp
.setFileNamePattern(CoreTestConstants.OUTPUT_DIR_PREFIX + "toto-%d.log");
tbrp.start();
rfa.setRollingPolicy(tbrp);
rfa.start();
assertTrue(rfa.isAppend());
assertNull(rfa.rawFileProperty());
assertTrue(rfa.isStarted());
}
代码示例来源:origin: ch.qos.logback/core
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: com.hynnet/logback-core
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: tony19/logback-android
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: Nextdoor/bender
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
代码示例来源:origin: io.virtdata/virtdata-lib-realer
if (rawFileProperty() != null) {
addWarn("Setting \"File\" property to null on account of prudent mode");
setFile(null);
内容来源于网络,如有侵权,请联系作者删除!