Comments (7)
opts is param of dev function but not use it?it seems code not finished.need add opts like date IP etc to console log.
from logger.
+1
from logger.
Should be a separate module IMO. You don't need all this color stuff and you'd want to pipe to arbitrary streams
from logger.
PRETTY COLORS haha. the time part can be useful in dev, date not so much, but if it's in a nice yy-mm-dd hh:mm:ss format it wouldn't bother me
from logger.
yeah i agree that time would be useful. i just don't want to have a billion options like we had with connect's logger.
i think the best route to go is to either separate the actual logs and their display (different repos or just different methods) or have this
be an emitter, emit specific events, then have logging middleware just log these events. i don't want want to encourage people to actually listen to these events for logic though
from logger.
we could also just have tracers hook into the events emitted on this
.
from logger.
yea in general I agree having separate modules for specific cases is way better, I'm down for that too, easy copy/paste
from logger.
Related Issues (20)
- Document koa-logger@next being available for koa@next users?
- TypeError: chalk[color] is not a function HOT 4
- Non-colored output when under grunt-concurrent HOT 1
- Incorrect Status Outputs HOT 2
- Using in typescript HOT 1
- Always has 500 error even if ctx.status is not 500
- Colors are lost when running under grunt-concurrent HOT 1
- use `on-finished`
- Logging in Nanoseconds HOT 2
- Compatibility with Chrome Devtools Node.js debugging HOT 1
- Koa-logger@2 not working if used with node < v7.6 HOT 2
- why 7? HOT 1
- Option to disable colors in log output HOT 2
- Better not change the Stream ctx.body HOT 2
- Custom Error codes: TypeError: chalk[color] is not a function HOT 1
- Add support for request-received middleware
- Is there a reason not to pass ctx on Custom Transporter?
- Support request-received v0.0.3
- intercepting body stream makes request.js not setting header of response
- is there a way to log user agent?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logger.