Skip to content

Latest commit

 

History

History
86 lines (55 loc) · 2.96 KB

readme.md

File metadata and controls

86 lines (55 loc) · 2.96 KB

Feego Common

License Maven Central GitHub release

基础能力列表

模块说明

  • feego-common-configuration-processor : 编译器相关的注解处理器
  • feego-common-logging : 模块化日志核心
    • feego-common-logging-starter:模块化日志自动配置
  • feego-common-service
    • feego-common-service : 其它通用功能。代码量不足以独立成一个module的都放在这里面
    • feego-common-service-starter : 相关的bean自动配置
  • 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