2012-06-18 19:08:48 +00:00
|
|
|
- [Yunong] buffered writes to increase speed:
|
2012-02-08 18:36:20 +00:00
|
|
|
- I'd start with a tools/timeoutput.js for some numbers to compare
|
|
|
|
before/after. Sustained high output to a file.
|
2012-02-06 23:27:30 +00:00
|
|
|
- perhaps this would be a "buffered: true" option on the stream object
|
|
|
|
- then wrap the "stream" with a local class that handles the buffering
|
2012-02-08 18:36:20 +00:00
|
|
|
- to finish this, need the 'log.close' and `process.on('exit', ...)`
|
|
|
|
work that Trent has started.
|
2012-01-30 22:28:02 +00:00
|
|
|
- "canWrite" handling for full streams. Need to buffer a la log4js
|
2012-02-01 06:36:06 +00:00
|
|
|
- test file log with logadm rotation: does it handle that?
|
2012-01-31 01:17:39 +00:00
|
|
|
- test suite:
|
|
|
|
- test for a cloned logger double-`stream.end()` causing problems.
|
|
|
|
Perhaps the "closeOnExit" for existing streams should be false for
|
|
|
|
clones.
|
2012-02-01 06:36:06 +00:00
|
|
|
- test that a `log.clone(...)` adding a new field matching a serializer
|
|
|
|
works *and* that an existing field in the parent is not *re-serialized*.
|
2012-01-31 22:43:13 +00:00
|
|
|
- a "rolling-file" stream: but specifically by time, e.g. hourly. (MarkC
|
|
|
|
requested)
|
2012-02-06 23:27:30 +00:00
|
|
|
- ringBuffer stream
|
2012-02-08 18:36:20 +00:00
|
|
|
- split out `bunyan` cli to a "bunyan" or "bunyan-reader" or "node-bunyan-reader"
|
|
|
|
as the basis for tools to consume bunyan logs. It can grow indep of node-bunyan
|
|
|
|
for generating the logs.
|
|
|
|
It would take a Bunyan log record object and be expected to emit it.
|
2012-06-18 19:08:48 +00:00
|
|
|
|
|
|
|
node-bunyan-reader
|
|
|
|
.createReadStream(path, [options]) ?
|
|
|
|
|
2012-02-08 23:27:14 +00:00
|
|
|
- document "well-known" keys from bunyan CLI p.o.v.. Add "client_req".
|
2012-04-10 21:02:15 +00:00
|
|
|
- bunyan tool: built in less usage (a la git?) so that I don't have to
|
|
|
|
go through this: `bunyan --color master.log | less -R`
|
2012-06-18 19:08:48 +00:00
|
|
|
- want `bunyan -f foo.log` a la `tail -f`
|
2012-02-08 18:36:20 +00:00
|
|
|
|
2012-01-31 22:43:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
# someday/maybe
|
|
|
|
|
2012-02-11 05:45:31 +00:00
|
|
|
- remove "rm -rf tmp" when this fixed: <https://github.com/isaacs/npm/issues/2144>
|
2012-02-08 18:36:20 +00:00
|
|
|
- what about promoting 'latency' field and making that easier?
|
2012-02-06 23:29:22 +00:00
|
|
|
- `log.close` to close streams and shutdown and `this.closed`
|
|
|
|
process.on('exit', log.close)
|
2012-02-06 04:33:57 +00:00
|
|
|
- bunyan cli: -c COND args a la json
|
2012-02-06 23:27:30 +00:00
|
|
|
- bunyan cli: more layouts (http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/EnhancedPatternLayout.html)
|
|
|
|
Custom log formats (in config file? in '-f' arg) using printf or hogan.js
|
|
|
|
or whatever. Dap wants field width control for lining up. Hogan.js is
|
|
|
|
probably overkill for this.
|
|
|
|
- syslog: Josh uses https://github.com/chrisdew/node-syslog
|
|
|
|
streams: [
|
|
|
|
...
|
|
|
|
{
|
|
|
|
level: "warn",
|
|
|
|
type: "syslog",
|
|
|
|
syslog_facility: "LOG_LOCAL1", // one of the syslog facility defines
|
|
|
|
syslog_pid: true, // syslog logopt "LOG_PID"
|
|
|
|
syslog_cons: false // syslog logopt "LOG_CONS"
|
|
|
|
}
|
2012-02-06 04:33:57 +00:00
|
|
|
- bunyan "compact" or "light", '-l'? Something like. Or pehaps this (with
|
|
|
|
color) could be the default, with '-l' for long output.
|
|
|
|
13:51.340 [src.js:20#Wuzzle.woos] WARN: This wuzzle is woosey.
|
2012-02-05 05:42:47 +00:00
|
|
|
- get Mark to show me dtrace provider stuff and consider adding for
|
|
|
|
logging, if helpful.
|
2012-02-04 01:05:13 +00:00
|
|
|
- add option to "streams" to take the raw object, not serialized.
|
2012-01-31 22:43:13 +00:00
|
|
|
It would be a good hook for people with custom needs that Bunyan doesn't
|
2012-02-08 18:30:13 +00:00
|
|
|
care about (e.g. http://loggly.com/ or hook.io or whatever).
|
2012-02-08 18:36:20 +00:00
|
|
|
- serializer `req_id` that pulls it from req? `log.info({req_id: req}, "hi")`
|
2012-02-02 05:33:18 +00:00
|
|
|
- serializer support:
|
|
|
|
- restify-server.js example -> restifyReq ? or have `req` detect that.
|
|
|
|
That is nicer for the "use all standard ones". *Does* restify req
|
|
|
|
have anything special?
|
|
|
|
- differential HTTP *client* req/res with *server* req/res.
|
2012-02-04 01:05:13 +00:00
|
|
|
- statsd stream? http://codeascraft.etsy.com/2011/02/15/measure-anything-measure-everything/
|
|
|
|
Think about it.
|