You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,22 +69,24 @@ This can be accomplished with using [custom formats](https://github.com/winstonj
69
69
70
70
Below is the list of items that make up the roadmap through `3.4.0`. We are actively triaging the open issues, so it is likely a few more critical path items will be added to this list before the next release goes out.
Copy file name to clipboardExpand all lines: README.md
+75-28Lines changed: 75 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ A logger for just about everything.
8
8
9
9
[](https://gitter.im/winstonjs/winston?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
10
10
11
-
## winston@3.0.0
11
+
## winston@3.2.0
12
12
13
13
See the [Upgrade Guide](UPGRADE-3.0.md) for more information. Bug reports and
14
14
PRs welcome!
@@ -34,6 +34,13 @@ ensuring those APIs decoupled from the implementation of transport logging
34
34
(i.e. how the logs are stored / indexed, see: [Adding Custom Transports]) to
35
35
the API that they exposed to the programmer.
36
36
37
+
## Quick Start
38
+
39
+
TL;DR? Check out the [quick start example][quick-example] in `./examples/`.
40
+
There are a number of other examples in [`./examples/*.js`][examples].
41
+
Don't see an example you think should be there? Submit a pull request
42
+
to add it!
43
+
37
44
## Usage
38
45
39
46
The recommended way to use `winston` is to create your own logger. The
@@ -43,7 +50,7 @@ simplest way to do this is using `winston.createLogger`:
43
50
constlogger=winston.createLogger({
44
51
level:'info',
45
52
format:winston.format.json(),
46
-
defaultMeta: {service:'user-service'},
53
+
defaultMeta: {service:'user-service'},
47
54
transports: [
48
55
//
49
56
// - Write to all logs with level `info` and below to `combined.log`
@@ -71,6 +78,10 @@ logger to use throughout your application if you so choose.
71
78
72
79
## Table of contents
73
80
81
+
*[Motivation](#motivation)
82
+
*[Quick Start](#quick-start)
83
+
*[Usage](#usage)
84
+
*[Table of Contents](#table-of-contents)
74
85
*[Logging](#logging)
75
86
*[Creating your logger](#creating-your-own-logger)
76
87
*[Streams, `objectMode`, and `info` objects](#streams-objectmode-and-info-objects)
0 commit comments