Watch 1 Star 0 Fork 0

xlongwei / logbackserverJavaBSD-3-Clause

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
logbackserver spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md
  • server.xml

    1. ServerSocketReceiver监听6000端口,多个client使用SocketAppender发送日志到这个logbackserver
    2. server.sh正式使用时后台运行即可
  • client.xml

    1. client相关文件仅用于测试,实际使用时将SocketAppender配置到logback.xml即可
    2. IncludeCallerData=true时日志支持方法名和行号等信息,否则输出问号
    3. ${HOSTNAME}附加到了contextName,以便区分多个client主机
    4. server重启时,client日志会缓存,默认queueSize=128,可自定义
  • 其他说明

    1. client可以使用ServerSocketAppender监听端口,让server使用SocketReceiver拉取日志,但通常是client需要知道server,而server不必关心client
    2. server和client都有被注释的第二种执行方式,测试时需要注释xml对应的等价配置,实际使用时建议xml更优

Comments ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/xlongwei/logbackserver.git
git@gitee.com:xlongwei/logbackserver.git
xlongwei
logbackserver
logbackserver
master

Help Search