Skip to main content

日志相关

ioGame 日志

see IoGameGlobalConfig

  • code 4,true 开启日志。
  • code 5,true 开启请求响应相关日志,默认为 false
  • code 6,true 开启对外服相关日志,默认为 false
  • code 7,rue 开启广播相关日志,默认为 false
  • code 8,true 开启集群相关日志
@UtilityClass
public class IoGameGlobalConfig {
...
public boolean openLog = BrokerGlobalConfig.openLog;
public boolean requestResponseLog = BrokerGlobalConfig.requestResponseLog;
public boolean externalLog = BrokerGlobalConfig.externalLog;
public boolean broadcastLog = BrokerGlobalConfig.broadcastLog;
public boolean brokerClusterLog = BrokerGlobalConfig.brokerClusterLog;
}

bolt 日志目录

bolt 的日志,存放是当前用户目录下,不是在项目的目录中。 比如当前电脑的用户目录是 /Users/join/logs/bolt

.
├── common-default.log
├── common-error.log
├── connection-event.log
├── remoting-http.log
├── remoting-msg.log
├── remoting-rpc.log
└── remoting-tr-adapter.log