日志关联配置文件
parent
db63d5f3ae
commit
cefd6ba749
|
@ -30,6 +30,8 @@ public class ServerProperties {
|
|||
|
||||
private boolean debug;
|
||||
|
||||
private String logDir;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -118,6 +120,14 @@ public class ServerProperties {
|
|||
this.debug = debug;
|
||||
}
|
||||
|
||||
public String getLogDir() {
|
||||
return logDir;
|
||||
}
|
||||
|
||||
public void setLogDir(String logDir) {
|
||||
this.logDir = logDir;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ServerProperties{" +
|
||||
|
@ -125,13 +135,14 @@ public class ServerProperties {
|
|||
", plat='" + plat + '\'' +
|
||||
", channel='" + channel + '\'' +
|
||||
", isLAN=" + isLAN +
|
||||
", openTime=" + openTime +
|
||||
", openTime='" + openTime + '\'' +
|
||||
", num=" + num +
|
||||
", sendlog37=" + sendlog37 +
|
||||
", guildFight =" + guildFight +
|
||||
", areaId="+areaId+
|
||||
", autoOpen="+autoOpen+
|
||||
", debug="+debug+
|
||||
", guildFight=" + guildFight +
|
||||
", areaId=" + areaId +
|
||||
", autoOpen=" + autoOpen +
|
||||
", debug=" + debug +
|
||||
", logDir='" + logDir + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
* @discribe
|
||||
*/
|
||||
public class ReportUtil {
|
||||
private static final String LOG_PATH = "D:\\jl_logs";
|
||||
private static final String LOG_PATH = GameApplication.serverProperties.getLogDir();
|
||||
|
||||
private static ThinkingDataAnalytics ta = new ThinkingDataAnalytics(new ThinkingDataAnalytics.LoggerConsumer(LOG_PATH));
|
||||
|
||||
|
|
Loading…
Reference in New Issue