0 Star 2 Fork 1

夏哥 / logbackserver

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
The current repository's web page is accessible only to members. If you need to make it public, please ask author 夏哥 to submit applications.
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更优

Repository Comments ( 4 )

Sign in to post a comment

About

logbackserver expand collapse
Java
BSD-3-Clause
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/xlongwei/logbackserver.git
git@gitee.com:xlongwei/logbackserver.git
xlongwei
logbackserver
logbackserver
master

Search

103111 552b83b3 1850385 103110 ed87a847 1850385