GithubHelp home page GithubHelp logo

一些优化建议 about sensitive HOT 2 OPEN

bingxue314159 avatar bingxue314159 commented on June 11, 2024
一些优化建议

from sensitive.

Comments (2)

houbb avatar houbb commented on June 11, 2024

脱敏日志其实应该分为2个部分。
1)新项目可改造类:基于自定义注解,重写 toString 之类。这样性能最好,但是改造成本高。
2)改造成本高,追求方便:直接基于日志插件模式实现脱敏,此时是日志字符串层面,已经不再有字段的概念。

第二点,不同的信息不同的脱敏策略本身是支持的。我回来看下是不是文档没写。

from sensitive.

ppliang13 avatar ppliang13 commented on June 11, 2024

是的,但是1)属于业务处理逻辑内,太多字段需要脱敏是否会影响业务的实际处理的效率。
2)这个log4j2日志输出是异步的 不会对原有的业务逻辑处理带来影响。
我认为定位到需要脱敏的日志方法进行案例2脱敏会有更好的效果,但是需要这个日志进行替换 无法精确到某个字段。

from sensitive.

Related Issues (20)

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.