Skip to content

Commit 4b8a133

Browse files
committed
minor tweaks, to make pretty-printing work better.
1 parent 79098ce commit 4b8a133

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

logging.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class LoggingService {
9595
levelFirst: false,
9696
messageKey: 'msg',
9797
timestampKey: 'time',
98-
translateTime: 'mmmm dS h:MM:ss TT',
98+
translateTime: 'h:MM:ss TT',
99+
ignore: 'pid,hostname'
99100
} : false);
100101

101102
// Store a generic root logger.
@@ -134,7 +135,7 @@ class LoggingService {
134135

135136
// Create a child logger, specifying the module we're logging for.
136137
const moduleName = path.relative(this.mainDir, filename);
137-
return this._modLogger(this.root.child({ module: moduleName }));
138+
return this.getLogger(moduleName);
138139
} // end loggerFor
139140

140141
dump(obj, colors=true, depth=null, showHidden=false)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"author": "Christopher S. Case <[email protected]>",
2121
"license": "MIT",
2222
"dependencies": {
23-
"pino": "^5.12.6"
23+
"pino": "^5.13.1"
2424
},
2525
"devDependencies": {
2626
"pino-pretty": "^3.2.0"

yarn.lock

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fast-safe-stringify@^2.0.6:
7777
resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.6.tgz#04b26106cc56681f51a044cfc0d76cf0008ac2c2"
7878
integrity sha512-q8BZ89jjc+mz08rSxROs8VsrBBcn1SIw1kq9NjolL509tkABRk9io01RAjSaEv1Xb2uFLt8VtRiZbGp5H8iDtg==
7979

80-
flatstr@^1.0.9:
80+
flatstr@^1.0.12, flatstr@^1.0.9:
8181
version "1.0.12"
8282
resolved "https://registry.yarnpkg.com/flatstr/-/flatstr-1.0.12.tgz#c2ba6a08173edbb6c9640e3055b95e287ceb5931"
8383
integrity sha512-4zPxDyhCyiN2wIAtSLI6gc82/EjqZc1onI4Mz/l0pWrAlsSfYH/2ZIcU+e3oA2wDwbzIWNKwa23F8rh6+DRWkw==
@@ -110,6 +110,7 @@ [email protected]:
110110
once@^1.3.1, once@^1.4.0:
111111
version "1.4.0"
112112
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
113+
integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
113114
dependencies:
114115
wrappy "1"
115116

@@ -133,17 +134,17 @@ pino-std-serializers@^2.3.0:
133134
resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-2.4.2.tgz#cb5e3e58c358b26f88969d7e619ae54bdfcc1ae1"
134135
integrity sha512-WaL504dO8eGs+vrK+j4BuQQq6GLKeCCcHaMB2ItygzVURcL1CycwNEUHTD/lHFHs/NL5qAz2UKrjYWXKSf4aMQ==
135136

136-
pino@^5.12.6:
137-
version "5.12.6"
138-
resolved "https://registry.yarnpkg.com/pino/-/pino-5.12.6.tgz#04a668278d7616db71871f1bd3e26f6918e05feb"
139-
integrity sha512-LM5ug2b27uymIIkaBw54ncF+9DSf8S4z1uzw+Y5I94dRu3Z+lFuB13j0kg1InAeyxy+CsLGnWHKy9+zgTreFOg==
137+
pino@^5.13.1:
138+
version "5.13.1"
139+
resolved "https://registry.yarnpkg.com/pino/-/pino-5.13.1.tgz#583eb92be0ccbaa2a98ab2842817a1fa103cb26e"
140+
integrity sha512-IxusG28L0g50uuf21kZELypdFOeNrJ/kRhktdi7LtdZQWCxLliMxG5iOrGUQ/ng7MiJ4XqXi/hfyXwZeKc1MxA==
140141
dependencies:
141142
fast-redact "^1.4.4"
142143
fast-safe-stringify "^2.0.6"
143144
flatstr "^1.0.9"
144145
pino-std-serializers "^2.3.0"
145146
quick-format-unescaped "^3.0.2"
146-
sonic-boom "^0.7.3"
147+
sonic-boom "^0.7.5"
147148

148149
pump@^3.0.0:
149150
version "3.0.0"
@@ -172,12 +173,12 @@ safe-buffer@~5.1.0:
172173
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
173174
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
174175

175-
sonic-boom@^0.7.3:
176-
version "0.7.4"
177-
resolved "https://registry.yarnpkg.com/sonic-boom/-/sonic-boom-0.7.4.tgz#dc1740a900cf8646471f6ac1f4933a5c66c0ca60"
178-
integrity sha512-8JRAJg0RxZtFLQMxolwETvWd2JSlH3ZGo/Z4xPxMbpqF14xCgVYPVeFCFOR3zyr3pcfG82QDVj6537Sx5ZWdNw==
176+
sonic-boom@^0.7.5:
177+
version "0.7.5"
178+
resolved "https://registry.yarnpkg.com/sonic-boom/-/sonic-boom-0.7.5.tgz#b383d92cdaaa8e66d1f77bdec71b49806d01b5f1"
179+
integrity sha512-1pKrnAV6RfvntPnarY71tpthFTM3pWZWWQdghZY8ARjtDPGzG/inxqSuRwQY/7V1woUjfyxPb437zn4p5phgnQ==
179180
dependencies:
180-
flatstr "^1.0.9"
181+
flatstr "^1.0.12"
181182

182183
split2@^3.1.1:
183184
version "3.1.1"
@@ -208,3 +209,4 @@ util-deprecate@^1.0.1:
208209
wrappy@1:
209210
version "1.0.2"
210211
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
212+
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=

0 commit comments

Comments
 (0)