0 Star 1 Fork 0

夏哥 / logserver-spring-boot-starter

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

简介

logserver-spring-boot-starter自动配置logback发送日志到logserver,从而实现聚合多个项目的日志输出到文件系统的功能。logserver实现了简易的日志实时跟踪、grep关键字搜索、log文件下载等功能,在浏览器上分析日志比较困难时建议下载文件到本地使用Notepad++等工具处理。

使用

Maven

<dependency>
    <groupId>com.xlongwei.logserver</groupId>
    <artifactId>logserver-spring-boot-starter</artifactId>
    <version>0.0.3</version>
</dependency>

actuator

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

配置

logserver: 
  enabled: true #false停用logserver功能
  remoteHost: logserver #默认logserver配合/etc/hosts使用,也可以直接配置ip
  port: 6000 #默认端口6000
  queueSize: 10240 #默认队列大小10240,配置SocketAppender的队列大小
  reconnectionDelay: 10000 #默认重试间隔10秒
  token: xlongwei #安全校验,需要与logserver的lajax.token一致
  remoteAddress: #默认http://logserver:9880,向logserver注册自己
management: #需要依赖spring-boot-starter-actuator
  endpoints:
    web:
      exposure:
        include: logserver #开启LogserverEndpoint,让logserver变更日志级别

jvm

-Dlogserver.token=xlongwei -Dlogserver.remoteHost=192.168.1.99 -Dmanagement.endpoints.web.exposure.include=logserver

Repository Comments ( 0 )

Sign in to post a comment

About

自动配置loback输出日志到logserver expand collapse
Cancel

Releases (1)

All

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/xlongwei/logserver-spring-boot-starter.git
git@gitee.com:xlongwei/logserver-spring-boot-starter.git
xlongwei
logserver-spring-boot-starter
logserver-spring-boot-starter
master

Search

103111 552b83b3 1850385 103110 ed87a847 1850385