Giter Site home page Giter Site logo

xiaoshan006 / springboot-log Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tiantianupup/springboot-log

0.0 1.0 0.0 10.32 MB

springboot整合log4j2、logback日志框架,包括同步、异步的日志配置方式、MDC全链路日志跟踪

Java 93.59% TSQL 6.41%

springboot-log's Introduction

springboot-log日志框架整合

项目说明

该项目是springboot整合日志框架的demo工程,整合的日志框架包括log4j2、logback

模块说明

  • springboot-log4j2 => springboot整合log4j2日志框架
  • sprongboot-logback => springboot整合logback日志框架
  • springboot-trace => springboot整合log4j2结合MDC实现全链路traceId

开发环境

  • windows10 os
  • maven
  • jdk 1.8

Get Start[快速开始]

  • git clone
git clone https://github.com/TiantianUpup/springboot-log.git
  • 数据准备
    执行sql文件夹下的test.sql,执行之前先创建test数据库
  • 修改LOG_ERROR_HOME、LOG_INFO_HOME为你的本地日志保存地址
  • 启动springboot-log4j2(端口号为8082)/springboot-logback(端口号为8080)
  • 访问/api/test GET 将看到不同级别的日志输出
  • 访问/user/page POST
    RequestBody:
    {
        "userName":"ff"
    }
    
    将看到info级别的日志输出

更新说明

  • 2020/3/18 => 添加springboot-trace模块,log4j2结合MDC实现全链路traceId

springboot-log's People

Contributors

tiantianupup avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.