webman-php / log Goto Github PK
View Code? Open in Web Editor NEWwebman log plugin
License: MIT License
webman log plugin
License: MIT License
middleware 每次 request 都会加载,但是像 laravel 的 Db::listen 是持久化的,那会导致一直追加 listen
目前没有导致 log 一直增加的原因是 $this->log 是每次都是重新赋值为空的
是否有其他解决方案解决这个问题,比如使用 bootstrap ?
if (method_exists($response, 'exception') && $exception = $response->exception()) {
$logs .= $exception;
Log::error($logs);
} else {
Log::info($logs);
}
这段,框架的Handler也会打印log,这边又重新打印了一遍,重复了。还有例如抛出自定义验证错误的异常ValidateException,框架Handler里可以在$dontReport里不输出,但这里就没法设置了。
tp-orm的sql日志不记录
laravel-orm 没问题
部分接口调用太频繁,写日志写的太多了.
不知道是否可以屏蔽部分
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.