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
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,12 @@ You could probably get something pretty similar with just an advanced pino-prett
46
46
### Install
47
47
48
48
`npm install pino-princess --save-dev`
49
-
or
50
-
`yarn install -D pino-princess`
51
49
52
50
## Usage
53
51
54
52
### CLI
55
53
56
-
The reccomended usage of pino-princess is as a separate process from your main application which pipes pino logs from stdout into pino-princess for formatting.
54
+
The recommended usage of pino-princess is as a separate process from your main application which pipes pino logs from stdout into pino-princess for formatting.
@@ -115,7 +113,7 @@ pino-princess, as a fork of pino-pretty, is also set up to be used as a pino v7
115
113
116
114
## Configuration
117
115
118
-
pino-princess supports a simple configuration which can be supplied as either command line arguments, or alternatively, pino-princess.config.js file located in the path up from where the application is being ran.
116
+
pino-princess supports a simple configuration which can be supplied as either command line arguments, or alternatively, a pino-princess.config.js file. The config file is automatically discovered by searching up from the current working directory to your home directory.
119
117
120
118
### example
121
119
@@ -134,7 +132,7 @@ module.exports = {
134
132
* In this way, excludes can be used to exclude large base objects and the "include"
135
133
* can be used to pick certain fields and "add them back" to the log output.
136
134
* For example, by default, pino-princess excludes the entire req or res object from any http logger.
137
-
* Because some fields on req and res are required to constuct the core of the log line, these fields are added back via the include.
135
+
* Because some fields on req and res are required to construct the core of the log line, these fields are added back via the include.
138
136
*
139
137
* default value:
140
138
*/
@@ -146,7 +144,7 @@ module.exports = {
146
144
*
147
145
* An array of strings which represent a key on any object.
148
146
* Keys matching any one of these strings cause these keys will ensure the key is always part of the log output.
149
-
* The includes always overrides by the excludes.
147
+
* The includes always override the excludes.
150
148
* In this way, include can be used to "add back" properties of excluded objects to the log output.
151
149
* By default pino-princess includes all the properties required to create our standard log line.
152
150
*
@@ -259,7 +257,7 @@ module.exports = {
259
257
keyMap: {},
260
258
/**
261
259
* theme
262
-
* (chalk: Chalk) => string
260
+
* (chalk: Chalk) => object
263
261
*
264
262
* This determines the colors of any extra fields that are not included in the pino-princess log line
0 commit comments