Giter VIP home page Giter VIP logo

log's People

Contributors

ljnchn avatar sudden3 avatar walkor avatar zjttfs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

log's Issues

关于使用 middleware 的疑问

middleware 每次 request 都会加载,但是像 laravel 的 Db::listen 是持久化的,那会导致一直追加 listen
目前没有导致 log 一直增加的原因是 $this->log 是每次都是重新赋值为空的
是否有其他解决方案解决这个问题,比如使用 bootstrap ?

log里打印异常,是不是和框架的重复了

        if (method_exists($response, 'exception') && $exception = $response->exception()) {
            $logs .= $exception;
            Log::error($logs);
        } else {
            Log::info($logs);
        }

这段,框架的Handler也会打印log,这边又重新打印了一遍,重复了。还有例如抛出自定义验证错误的异常ValidateException,框架Handler里可以在$dontReport里不输出,但这里就没法设置了。

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.