### VIDEO_CONVERSION LOG ## logger.VIDEO_CONVERSION.name = com.isprint.am.core.privpwd.videoconverter logger.VIDEO_CONVERSION.level = DEBUG logger.VIDEO_CONVERSION.additivity = false logger.VIDEO_CONVERSION.appenderRef.rolling.ref = VIDEO_CONVERSION_LOG appender.VIDEO_CONVERSION_LOG.type = RollingFile appender.VIDEO_CONVERSION_LOG.name = VIDEO_CONVERSION_LOG appender.VIDEO_CONVERSION_LOG.fileName = logs/${hostName}_video-conversion.Log appender.VIDEO_CONVERSION_LOG.filePattern = logs/${hostName}_video-conversion.Log.%d{yyyy-MM-dd}_%i.gz # Uncomment line below to change compression from gz to zip #appender.OFFLINEREPORT_LOG.filePattern = logs/${hostName}_offline-report.Log.%d{yyyy-MM-dd}_%i.zip appender.VIDEO_CONVERSION_LOG.layout.type = PatternLayout appender.VIDEO_CONVERSION_LOG.layout.charset = UTF-8 appender.VIDEO_CONVERSION_LOG.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p - %m%n appender.VIDEO_CONVERSION_LOG.policies.type = Policies appender.VIDEO_CONVERSION_LOG.policies.time.type = TimeBasedTriggeringPolicy appender.VIDEO_CONVERSION_LOG.policies.time.interval = 1 appender.VIDEO_CONVERSION_LOG.policies.time.modulate = true appender.VIDEO_CONVERSION_LOG.policies.size.type = SizeBasedTriggeringPolicy appender.VIDEO_CONVERSION_LOG.policies.size.size=5120MB appender.VIDEO_CONVERSION_LOG.strategy.type = DefaultRolloverStrategy appender.VIDEO_CONVERSION_LOG.strategy.fileIndex = nomax appender.VIDEO_CONVERSION_LOG.strategy.delete.type = Delete appender.VIDEO_CONVERSION_LOG.strategy.delete.basePath = logs appender.VIDEO_CONVERSION_LOG.strategy.delete.ifFileName.type = IfFileName appender.VIDEO_CONVERSION_LOG.strategy.delete.ifFileName.glob = *video-conversion.log.* appender.VIDEO_CONVERSION_LOG.strategy.delete.ifAccumulatedFileCount.type = IfAccumulatedFileCount appender.VIDEO_CONVERSION_LOG.strategy.delete.ifAccumulatedFileCount.exceeds = 180标签:CONVERSION,LOG,type,配置,appender,VIDEO,strategy,log4j2,properties From: https://www.cnblogs.com/heysong/p/17348725.html