Giter Site home page Giter Site logo

chimee 里的 log 如何调节 about chimee HOT 6 CLOSED

chimeejs avatar chimeejs commented on July 19, 2024
chimee 里的 log 如何调节

from chimee.

Comments (6)

huzunjie avatar huzunjie commented on July 19, 2024

期望得到一个开关机制,比如某读取操作已知会触发警告日志,但确实无害,那先临时关闭,读完再恢复原有日志输出逻辑,以避免正式功能应用中出现警告...

from chimee.

toxic-johann avatar toxic-johann commented on July 19, 2024

这个是插件才允许使用的后门。还是说提供给业务方的临时关闭措施呢?

就是说 chimee 的直接用户是否也可以调用这个规则。

from chimee.

huzunjie avatar huzunjie commented on July 19, 2024

插件才允许使用,文档里要公开的话要明确说明必须保证操作无害才可以启用... 要不这个设计的初衷就可以直接废弃了。

from chimee.

toxic-johann avatar toxic-johann commented on July 19, 2024

看了下,现行的方式是直接可以在 chimee-helper-log 中直接调节。其实原理上对 log 这方面确实没怎么包装。用户和插件都可以直接通过修改这个对象达到目的。

from chimee.

toxic-johann avatar toxic-johann commented on July 19, 2024

思考了一下,我们可以保留 chimee-helper-log 原来拥有的 log 调节功能。

另外,在 chimee 层针对插件提供一个方便调节 log 能力的接口。

如: logDowngrade 之类的。

因为涉及到各方调用。希望大家发表下自己的看法

@huzunjie @332065255 @songguangyu @yandeqiang

from chimee.

toxic-johann avatar toxic-johann commented on July 19, 2024

@huzunjie chimee 原有的 log 应该能满足你的需求。插件内部自己更改也是可以的。

因为之前没有将具体文档提供出来,文档在此

from chimee.

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.