Skip to content

Commit

Permalink
Added beeline support back. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyInHaengsin authored Nov 5, 2021
1 parent ca2e24f commit 1108bed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ module.exports = function (config) {
level: 'debug'
})
}
/* istanbul ignore next */
if (config.beeline) {
logger.addStream({
name: 'beeline-logger',
type: 'raw',
stream: {
write: data => {
if (data.event === 'REQUEST') return
config.beeline.finishSpan(config.beeline.startSpan(data))
}
},
level: 'debug'
})
}

logger.middleware = bunyanMiddleware(getMiddlewareConfig(config, logger))
return logger
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuali-logger",
"version": "0.2.3",
"version": "0.2.4",
"description": "Standardized logger for Kuali apps",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 1108bed

Please sign in to comment.