Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 200 lines (132 sloc) 7.054 kB
135163e @trentm VERSIONS, cutarelease prep
authored
1 # bunyan Changelog
2
6e0d1ec @trentm prep for future dev
authored
3 ## bunyan 0.6.10 (not yet released)
4
5 (nothing yet)
6
7
6d9aa4f @trentm prepare for 0.6.9 release
authored
8 ## bunyan 0.6.9
fcbecef @trentm prep for future dev
authored
9
8f1c8ad @trentm color 'src' info red in default bunyan CLI coloring
authored
10 - Change `bunyan` CLI default output to color "src" info red. Before the "src"
11 information was uncolored. The "src" info is the filename, line number and
12 function name resulting from using `src: true` in `Logger` creation. I.e.,
13 the `(/Users/trentm/tm/node-bunyan/examples/hi.js:10)` in:
14
15 [2012-04-10T22:28:58.237Z] INFO: myapp/39339 on banana.local (/Users/trentm/tm/node-bunyan/examples/hi.js:10): hi
16
ea39bf0 @trentm Bunyan CLI tweak to show an 'err' field that doesn't have a 'stack'.
authored
17 - Tweak `bunyan` CLI default output to still show an "err" field if it doesn't
18 have a "stack" attribute.
19
fcbecef @trentm prep for future dev
authored
20
d4bbc70 @trentm prepare for 0.6.8 release
authored
21 ## bunyan 0.6.8
993f9d8 @trentm prep for future dev
authored
22
8ea2533 @trentm Fix bad bug with the "fast child" path: `log.child({...}, true)`.
authored
23 - Fix bad bug in `log.child({...}, true);` where the added child fields **would
24 be added to the parent's fields**. This bug only existed for the "fast child"
25 path (that second `true` argument). A side-effect of fixing this is that
26 the "fast child" path is only 5 times as fast as the regular `log.child`,
27 instead of 10 times faster.
28
993f9d8 @trentm prep for future dev
authored
29
cfa6d92 @trentm prepare for 0.6.7 release
authored
30 ## bunyan 0.6.7
a834151 @trentm prep for future dev
authored
31
9f8f6e7 @trentm changelog message for Mike's pull
authored
32 - [issue #6] Fix bleeding 'type' var to global namespace. (Thanks Mike!)
33
a834151 @trentm prep for future dev
authored
34
dd14781 @trentm prepare for 0.6.6 release
authored
35 ## bunyan 0.6.6
77b99b6 @trentm prep for future dev
authored
36
9feb9c8 @trentm CLI file args: bunyan foo.log bar.log
authored
37 - Add support to the `bunyan` CLI taking log file path args, `bunyan foo.log`,
38 in addition to the usual `cat foo.log | bunyan`.
39 - Improve reliability of the default output formatting of the `bunyan` CLI.
40 Before it could blow up processing log records missing some expected
41 fields.
42
77b99b6 @trentm prep for future dev
authored
43
d49bee3 @trentm prepare for 0.6.5 release
authored
44 ## bunyan 0.6.5
b52b1b6 @trentm prep for future dev
authored
45
92a2e9d @trentm colored bunyan CLI output, and --color option
authored
46 - ANSI coloring output from `bunyan` CLI tool (for the default output mode/style).
47 Also add the '--color' option to force coloring if the output stream is not
887f407 @trentm --no-color option
authored
48 a TTY, e.g. `cat my.log | bunyan --color | less -R`. Use `--no-color` to
49 disable coloring, e.g. if your terminal doesn't support ANSI codes.
50 - Add 'level' field to log record before custom fields for that record. This
51 just means that the raw record JSON will show the 'level' field earlier,
52 which is a bit nicer for raw reading.
0f02707 @trentm put 'level' field earlier in record
authored
53
b52b1b6 @trentm prep for future dev
authored
54
d0fb966 @trentm prepare for 0.6.4 release
authored
55 ## bunyan 0.6.4
40ec83b @trentm [issue #5] Fix `log.info() -> boolean` to work properly. Previous all…
authored
56
57 - [issue #5] Fix `log.info() -> boolean` to work properly. Previous all were
58 returning false. Ditto all trace/debug/.../fatal methods.
59
60
39920c5 @trentm prepare for 0.6.3 release
authored
61 ## bunyan 0.6.3
38ea773 @trentm prep for future dev
authored
62
519f263 @trentm Allow an optional `msg` and arguments to the `log.info(<Error> err)` …
authored
63 - Allow an optional `msg` and arguments to the `log.info(<Error> err)` logging
64 form. For example, before:
65
66 log.debug(my_error_instance) // good
67 log.debug(my_error_instance, "boom!") // wasn't allowed
68
69 Now the latter is allowed if you want to expliciting set the log msg. Of course
70 this applies to all the `log.{trace|debug|info...}()` methods.
71
61ff403 @trentm clearer output for fields with spaces or empty string in bunyan cli o…
authored
72 - `bunyan` cli output: clarify extra fields with quoting if empty or have
73 spaces. E.g. 'cmd' and 'stderr' in the following:
74
75 [2012-02-12T00:30:43.736Z] INFO: mo-docs/43194 on banana.local: buildDocs results (req_id=185edca2-2886-43dc-911c-fe41c09ec0f5, route=PutDocset, error=null, stderr="", cmd="make docs")
76
38ea773 @trentm prep for future dev
authored
77
5e12452 @trentm prepare for 0.6.2 release
authored
78 ## bunyan 0.6.2
5361795 @trentm prep for future dev
authored
79
a14cea4 @trentm changelog for npm publish guard
authored
80 - Fix/guard against unintended inclusion of some files in npm published package
81 due to <https://github.com/isaacs/npm/issues/2144>
82
5361795 @trentm prep for future dev
authored
83
aa52789 @trentm prepare for 0.6.1 release
authored
84 ## bunyan 0.6.1
9c8f4e1 @trentm prep for future dev
authored
85
8c0e3ab @trentm npmignore to avoid crud in published packages
authored
86 - Internal: starting jsstyle usage.
87 - Internal: add .npmignore. Previous packages had reams of bunyan crud in them.
88
9c8f4e1 @trentm prep for future dev
authored
89
de2b661 @trentm prepare for 0.6.0 release
authored
90 ## bunyan 0.6.0
c12a90a @trentm issue #4: add 'pid' automatic log record field
authored
91
92 - Add 'pid' automatic log record field.
e8581c5 @trentm prep for future dev
authored
93
94
7f262ba @trentm prepare for 0.5.3 release
authored
95 ## bunyan 0.5.3
63f97b8 @trentm prep for future dev
authored
96
dda4603 @trentm mention 'client_req' in changelog
authored
97 - Add 'client_req' (HTTP client request) standard formatting in `bunyan` CLI
98 default output.
d531072 @trentm bunyan CLI output includes all keys
authored
99 - Improve `bunyan` CLI default output to include *all* log record keys. Unknown keys
100 are either included in the first line parenthetical (if short) or in the indented
101 subsequent block (if long or multiline).
102
63f97b8 @trentm prep for future dev
authored
103
768b2de @trentm prepare for 0.5.2 release
authored
104 ## bunyan 0.5.2
a8b054e @trentm prep for future dev
authored
105
9f5581b @trentm issue #3: more type checking of Logger ctor options and log.child opt…
authored
106 - [issue #3] More type checking of `new Logger(...)` and `log.child(...)`
107 options.
450e4eb @trentm start a test suite
authored
108 - Start a test suite.
109
a8b054e @trentm prep for future dev
authored
110
74f3787 @trentm prepare for 0.5.1 release
authored
111 ## bunyan 0.5.1
969ac69 @trentm prep for future dev
authored
112
3649708 @trentm note issue #2 for this
authored
113 - [issue #2] Add guard on `JSON.stringify`ing of log records before emission.
114 This will prevent `log.info` et al throwing on record fields that cannot be
115 represented as JSON. An error will be printed on stderr and a clipped log
116 record emitted with a 'bunyanMsg' key including error details. E.g.:
887f407 @trentm --no-color option
authored
117
1a0cd4b @trentm issue #2: Add guard on `JSON.stringify`ing of log records before emis…
authored
118 bunyan: ERROR: could not stringify log record from /Users/trentm/tm/node-bunyan/examples/unstringifyable.js:12: TypeError: Converting circular structure to JSON
119 {
120 "name": "foo",
121 "hostname": "banana.local",
122 "bunyanMsg": "bunyan: ERROR: could not stringify log record from /Users/trentm/tm/node-bunyan/examples/unstringifyable.js:12: TypeError: Converting circular structure to JSON",
123 ...
124
887f407 @trentm --no-color option
authored
125 Some timing shows this does effect log speed:
126
1a0cd4b @trentm issue #2: Add guard on `JSON.stringify`ing of log records before emis…
authored
127 $ node tools/timeguard.js # before
128 Time try/catch-guard on JSON.stringify:
129 - log.info: 0.07365ms per iteration
130 $ node tools/timeguard.js # after
131 Time try/catch-guard on JSON.stringify:
132 - log.info: 0.07368ms per iteration
3649708 @trentm note issue #2 for this
authored
133
969ac69 @trentm prep for future dev
authored
134
cb41c7e @trentm prepare for 0.5.0 release
authored
135 ## bunyan 0.5.0
543ef15 @trentm 'log.info(err)' support
authored
136
25b8eea @trentm Use 10/20/... instead of 1/2/... for level constant values.
authored
137 - Use 10/20/... instead of 1/2/... for level constant values. Ostensibly this
138 allows for intermediary levels from the defined "trace/debug/..." set.
139 However, that is discouraged. I'd need a strong user argument to add
140 support for easily using alternative levels. Consider using a separate
141 JSON field instead.
140c9fd @trentm s/service/name/ for Logger name field. "service" is unnecessarily tie…
authored
142 - s/service/name/ for Logger name field. "service" is unnecessarily tied
143 to usage for a service. No need to differ from log4j Logger "name".
352c417 @trentm Add `log.level(...)` and `log.levels(...)` API for changing logger st…
authored
144 - Add `log.level(...)` and `log.levels(...)` API for changing logger stream
145 levels.
146 - Add `TRACE|DEBUG|INFO|WARN|ERROR|FATAL` level constants to exports.
543ef15 @trentm 'log.info(err)' support
authored
147 - Add `log.info(err)` special case for logging an `Error` instance. For
148 example `log.info(new TypeError("boom")` will produce:
149
150 ...
151 "err": {
152 "message": "boom",
153 "name": "TypeError",
154 "stack": "TypeError: boom\n at Object.<anonymous> ..."
155 },
156 "msg": "boom",
157 ...
141253c @trentm prep for future dev
authored
158
159
12f2701 @trentm prepare for 0.4.0 release
authored
160 ## bunyan 0.4.0
e934baf @trentm v0.4: add 'src' call source location info support (the Yunong release)
authored
161
162 - Add `new Logger({src: true})` config option to have a 'src' attribute be
163 automatically added to log records with the log call source info. Example:
164
165 "src": {
166 "file": "/Users/trentm/tm/node-bunyan/examples/src.js",
167 "line": 20,
168 "func": "Wuzzle.woos"
169 },
d7e499b @trentm prep for future dev
authored
170
171
7c94825 @trentm prepare for 0.3.0 release
authored
172 ## bunyan 0.3.0
6806112 @trentm - `log.clone` -> `log.child` to better reflect the relationship: stre…
authored
173
40777aa @trentm 'log.child(..., true)' support for 10x faster with 'simple' field add…
authored
174 - `log.child(options[, simple])` Added `simple` boolean arg. Set `true` to
175 assert that options only add fields (no config changes). Results in a 10x
887f407 @trentm --no-color option
authored
176 speed increase in child creation. See "tools/timechild.js". On my Mac,
40777aa @trentm 'log.child(..., true)' support for 10x faster with 'simple' field add…
authored
177 "fast child" creation takes about 0.001ms. IOW, if your app is dishing
178 10,000 req/s, then creating a log child for each request will take
179 about 1% of the request time.
6806112 @trentm - `log.clone` -> `log.child` to better reflect the relationship: stre…
authored
180 - `log.clone` -> `log.child` to better reflect the relationship: streams and
181 serializers are inherited. Streams can't be removed as part of the child
182 creation. The child doesn't own the parent's streams (so can't close them).
183 - Clean up Logger creation. The goal here was to ensure `log.child` usage
184 is fast. TODO: measure that.
185 - Add `Logger.stdSerializers.err` serializer which is necessary to get good
186 Error object logging with node 0.6 (where core Error object properties
187 are non-enumerable).
d123784 @trentm prep for future dev
authored
188
189
7798f40 @trentm prepare for 0.2.0 release
authored
190 ## bunyan 0.2.0
aecc04f @trentm prep for subsequent release
authored
191
a475a1a @trentm 0.2: specing core log record fields (mainly)
authored
192 - Spec'ing core/recommended log record fields.
193 - Add `LOG_VERSION` to exports.
194 - Improvements to request/response serializations.
aecc04f @trentm prep for subsequent release
authored
195
196
7539c03 @trentm prepare for 0.1.0 release
authored
197 ## bunyan 0.1.0
135163e @trentm VERSIONS, cutarelease prep
authored
198
199 First release.
Something went wrong with that request. Please try again.