Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@balena/event-log
Advanced tools
Balena event logging facility.
$ npm install @balena/event-log
var EventLog = require('@balena/event-log')
var eventLogger = EventLog({
debug: true,
mixpanelToken: MIXPANEL_TOKEN,
mixpanelHost: 'api.mixpanel.com',
gaSite: 'balena-cloud.com',
gaId: GA_ID,
prefix: 'UI, CLI, etc.',
// Hooks:
beforeCreate: function (type, jsonData, applicationId, deviceId, callback) {
this.start('User ID', callback)
}
afterCreate: function (error, type, jsonData, applicationId, deviceId) {
if (type === 'User Logout') {
this.end()
}
if (error) {
console.error(error)
}
}
})
// Example logged event:
eventLoger.user.login(
{ json: 'data' }, // Or null
'Application ID', // Optional
'Device ID' // Optional
)
// Example logged event without params:
eventLoger.user.login()
prefix
- subsystem name like UI or CLI, acts as events names prefix[debug = false]
— will print some warnings[mixpanelToken = null]
- if set events will be reported to mixpanel[mixpanelHost = null]
- if set will override the default mixpanel API host[gaSite = null]
, [gaSite = null]
- if set events will be reported to GAbeforeCreate = function (type, jsonData, applicationId, deviceId, callback) { return callback() }
afterCreate = function (error, type, jsonData, applicationId, deviceId) {}
5.1.2 - 2021-06-30
FAQs
Balena events logging util
The npm package @balena/event-log receives a total of 158 weekly downloads. As such, @balena/event-log popularity was classified as not popular.
We found that @balena/event-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.