V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Geekerstar
V2EX  ›  问与答

微服务不用 AOP 如何打印入参出参?

  •  
  •   Geekerstar · 2021-11-22 17:54:36 +08:00 · 890 次点击
    这是一个创建于 876 天前的主题,其中的信息可能已经有所发展或是发生改变。

    RT

    最好是可以通过注解配置是否打印出参,如果只能用 AOP 的话,AOP 对性能影响很大么?

    目前架构是 Cloud Alibaba + gateway

    3 条回复    2021-11-23 14:43:49 +08:00
    Alchemistboy
        1
    Alchemistboy  
       2021-11-22 19:05:08 +08:00
    注解跟 AOP 原理不是一样吗 - _ - !
    cppc
        2
    cppc  
       2021-11-23 09:16:11 +08:00 via iPhone
    有个开源库 logbook ,你看看满足需求不

    https://github.com/zalando/logbook
    yuchen01
        3
    yuchen01  
       2021-11-23 14:43:49 +08:00
    你倒是说说不借助 AOP 的注解怎么用来运行时打印日志
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4572 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:10 · PVG 18:10 · LAX 03:10 · JFK 06:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.