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