1.依赖
github.com/alecthomas/log4go
2.配置
<filter enabled="true"><!-- enabled=false means this logger won't actually be created --> <tag>donotopen</tag> <type>socket</type> <level>INFO</level> <property name="endpoint">127.0.0.1:4560</property> <!-- recommend UDP broadcast --> <property name="protocol">tcp</property> <!-- tcp or udp --> </filter>
3.es相关参考
https://www.cnblogs.com/wujf/p/11082791.html