properties和xml是对应的,只是书写的方式不同
appender.S.type = Socket
appender.S.name= SocketTCP
appender.S.host = 10.10.1.169
appender.S.port=4560
appender.S.protocol = TCP
appender.S.layout.type = JsonLayout
appender.S.layout.compact = true
appender.S.layout.eventEol = true
appender.S.connectTimeoutMillis = 2000
rootLogger.appenderRef.S.ref=SocketTCP
rootLogger.appenderRef.S.level=socket