feego-common-logging-starter

Parent pom providing dependency and plugin management for applications built with Maven

License

License

Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

io.github.lvyahui8
ArtifactId

ArtifactId

feego-common-logging-starter
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

feego-common-logging-starter
Parent pom providing dependency and plugin management for applications built with Maven
Project URL

Project URL

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/feego-common-logging-starter

Download feego-common-logging-starter

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.lvyahui8/feego-common-logging-starter/ -->
<dependency>
    <groupId>io.github.lvyahui8</groupId>
    <artifactId>feego-common-logging-starter</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.lvyahui8/feego-common-logging-starter/
implementation 'io.github.lvyahui8:feego-common-logging-starter:1.1.0'
// https://jarcasting.com/artifacts/io.github.lvyahui8/feego-common-logging-starter/
implementation ("io.github.lvyahui8:feego-common-logging-starter:1.1.0")
'io.github.lvyahui8:feego-common-logging-starter:jar:1.1.0'
<dependency org="io.github.lvyahui8" name="feego-common-logging-starter" rev="1.1.0">
  <artifact name="feego-common-logging-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.lvyahui8', module='feego-common-logging-starter', version='1.1.0')
)
libraryDependencies += "io.github.lvyahui8" % "feego-common-logging-starter" % "1.1.0"
[io.github.lvyahui8/feego-common-logging-starter "1.1.0"]

Dependencies

compile (8)

Group / Artifact Type Version
io.github.lvyahui8 : feego-common-logging-core jar 1.1.0
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.1.1.RELEASE
ch.qos.logback : logback-classic jar 1.2.3
org.apache.logging.log4j : log4j-core jar 2.11.0
org.springframework.boot : spring-boot-autoconfigure jar 2.1.1.RELEASE
io.github.lvyahui8 : feego-common-configuration-processor jar 1.1.0
org.reflections : reflections jar 0.9.11
org.projectlombok : lombok jar 1.18.8

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Feego Common

License Maven Central GitHub release

基础能力列表

模块说明

image-20201013232937970

  • feego-common-configuration-processor : 编译器相关的注解处理器
  • feego-common-logging : 模块化日志核心
    • feego-common-logging-starter:模块化日志自动配置
  • feego-common-service
    • feego-common-service
    • feego-common-service-starter
  • feego-common-web
    • feego-common-web:web http相关的通用能力核心
    • feego-common-web-starter:web http相关通用能力自动配置

测试模块

  • example/feego-common-example-api:主要作为依赖包提供给第三方,声明系统暴露的API
  • example/feego-common-example-api-starter:自动配置系统暴露的API,第三方引用此包
  • example/feego-common-example-service:测试服务核心代码
  • example/feego-common-example-start:测试服务启动类
  • example/feego-common-example-client:消费测试服务的客户端程序

Common Logging

public enum CustomModuleLogger implements EnumModuleLogger { 
  campaign,
  status,
  ;
}
CustomModuleLogger.campaign.debug(LogSchema.biz("qrcode-pay")
          .of("orderId",1234).of("amount",100).of("suc",'Y'));
CustomModuleLogger.campaign.debug("hello");
CustomModuleLogger.campaign.debug("hello {}","dj");
CustomModuleLogger.campaign.debug("hello {} {}","d,","j");
CustomModuleLogger.campaign.debug("hello {} {} {} {}",'d','j','b','j');

// output to file ${user.home}/logs/general/campaign.log
2020-10-13 23:38:20.505 [DEBUG] - tid:c0a8006b36b175229cc3c410000|#|biz:qrcode-pay|#|orderId:1234|#|amount:100|#|suc:Y|#|
2020-10-13 23:38:20.505 [DEBUG] - tid:c0a8006b36b175229cc3c410000|#|msg:hello|#|
2020-10-13 23:38:20.505 [DEBUG] - tid:c0a8006b36b175229cc3c410000|#|msg:hello dj|#|
2020-10-13 23:38:20.505 [DEBUG] - tid:c0a8006b36b175229cc3c410000|#|msg:hello d, j|#|
2020-10-13 23:38:20.505 [DEBUG] - tid:c0a8006b36b175229cc3c410000|#|msg:hello d j b j|#|

image-20201013233502251

Versions

Version
1.1.0
1.0.0