周俊杰
1 year ago
2 changed files with 30 additions and 10 deletions
@ -1,14 +1,33 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<included> |
||||
|
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/> |
||||
|
<property name="LOG_HOME" value="${logPath}"/> |
||||
|
<!-- 按照每天生成日志文件 --> |
||||
|
<appender name="AgvNdcOneDeviceDriver" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
||||
|
<!--日志文件输出的文件名--> |
||||
|
<FileNamePattern>${LOG_HOME}/AGVNDC交互/%d{yyyy-MM-dd}.%i.log</FileNamePattern> |
||||
|
<!--日志文件保留天数--> |
||||
|
<maxHistory>15</maxHistory> |
||||
|
<!--单个日志最大容量 至少10MB才能看得出来--> |
||||
|
<maxFileSize>200MB</maxFileSize> |
||||
|
<!--所有日志最多占多大容量--> |
||||
|
<totalSizeCap>2GB</totalSizeCap> |
||||
|
</rollingPolicy> |
||||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
||||
|
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符--> |
||||
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> |
||||
|
<charset>${log.charset}</charset> |
||||
|
</encoder> |
||||
|
|
||||
<?import java.lang.*?> |
</appender> |
||||
<?import java.util.*?> |
|
||||
<?import javafx.scene.*?> |
|
||||
<?import javafx.scene.control.*?> |
|
||||
<?import javafx.scene.layout.*?> |
|
||||
|
|
||||
<AnchorPane xmlns="http://javafx.com/javafx" |
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
||||
xmlns:fx="http://javafx.com/fxml" |
<appender-ref ref="FILE3"/> |
||||
fx:controller="$CONTROLLER_NAME$" |
</logger>--> |
||||
prefHeight="400.0" prefWidth="600.0"> |
|
||||
|
|
||||
</AnchorPane> |
<!-- 打印sql --> |
||||
|
<logger name="org.nl.acs.device_driver.basedriver.agv.ndcone.AgvNdcOneDeviceDriver" level="info" additivity="false"> |
||||
|
<appender-ref ref="AgvNdcOneDeviceDriver"/> |
||||
|
</logger> |
||||
|
</included> |
||||
|
Loading…
Reference in new issue