mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
Merge pull request #3174 from zhangjidi2016/broker_log
[ISSUE #3173]Isolate Broker logs when multiple Broker services are deployed on the same machine.
This commit is contained in:
@@ -191,6 +191,11 @@ public class BrokerConfig {
|
||||
|
||||
private boolean autoDeleteUnusedStats = false;
|
||||
|
||||
/**
|
||||
* Whether to distinguish log paths when multiple brokers are deployed on the same machine
|
||||
*/
|
||||
private boolean isolateLogEnable = false;
|
||||
|
||||
public static String localHostName() {
|
||||
try {
|
||||
return InetAddress.getLocalHost().getHostName();
|
||||
@@ -832,4 +837,12 @@ public class BrokerConfig {
|
||||
public void setAutoDeleteUnusedStats(boolean autoDeleteUnusedStats) {
|
||||
this.autoDeleteUnusedStats = autoDeleteUnusedStats;
|
||||
}
|
||||
|
||||
public boolean isIsolateLogEnable() {
|
||||
return isolateLogEnable;
|
||||
}
|
||||
|
||||
public void setIsolateLogEnable(boolean isolateLogEnable) {
|
||||
this.isolateLogEnable = isolateLogEnable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user