aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/logger.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts
index a112fd300..29e06860d 100644
--- a/server/helpers/logger.ts
+++ b/server/helpers/logger.ts
@@ -151,7 +151,8 @@ const bunyanLogger = {
151 fatal: bunyanLogFactory('error') 151 fatal: bunyanLogFactory('error')
152} 152}
153 153
154function loggerTagsFactory (...defaultTags: string[]) { 154type LoggerTagsFn = (...tags: string[]) => { tags: string[] }
155function loggerTagsFactory (...defaultTags: string[]): LoggerTagsFn {
155 return (...tags: string[]) => { 156 return (...tags: string[]) => {
156 return { tags: defaultTags.concat(tags) } 157 return { tags: defaultTags.concat(tags) }
157 } 158 }
@@ -160,6 +161,8 @@ function loggerTagsFactory (...defaultTags: string[]) {
160// --------------------------------------------------------------------------- 161// ---------------------------------------------------------------------------
161 162
162export { 163export {
164 LoggerTagsFn,
165
163 buildLogger, 166 buildLogger,
164 timestampFormatter, 167 timestampFormatter,
165 labelFormatter, 168 labelFormatter,