@open-age/insight-client
v1.3.0
Published
## journals
Downloads
3
Readme
insight-client
journals
let insight = require('@open-age/insight-client')
let journal = insight.start('user', 'update', 'context')
journal.add('alias', 'Iron Man', 'Robert Downey')
await journal.end('Iron Man is born')
logs
Push the logs to insight api
In package.json
"dependencies": {
"@open-age/logger": "^1.3.6",
"@open-age/logger-insight": "^1.0.0"
}
In config.json
{
"logger": {
"@open-age/logger-insight": {
"level": "silly"
}
},
"providers": {
"insight": {
"url": "https://dev.openage.in/insight/api"
}
}
}
Usage
let log = context.logger.start('services/users')
log.info('Tony Stark has become Iron Man')