ch.qos.logback.core.rolling.RollingFileAppender.rawFileProperty()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(216)

本文整理了Java中ch.qos.logback.core.rolling.RollingFileAppender.rawFileProperty方法的一些代码示例,展示了RollingFileAppender.rawFileProperty的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RollingFileAppender.rawFileProperty方法的具体详情如下:
包路径:ch.qos.logback.core.rolling.RollingFileAppender
类名称:RollingFileAppender
方法名:rawFileProperty

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);

相关文章