Helius
2020-12-09 660fba5b40303dd661afcc2e2bd54a18d4f53c5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.matrix.core.tools;
 
import org.apache.log4j.DailyRollingFileAppender;
 
/**
 * 日志记录适配器
 * 
 * @author JIANGYOUYAO
 * @email 935090232@qq.com
 * @date 2017年11月27日
 */
public class MatrixFileAppender extends DailyRollingFileAppender {
 
    /**
     * 设置相对服务器的日志路径
     */
    @Override
    public void setFile(String file) {
        String val = file.trim();
        fileName = PropertiesUtil.getString("log_path") + val;
    }
}