Loglet.io is a centralized encrypted log management system that stores all your application logs in a single place, encrypted, streaming them in your browser.
The Loglet.io project uses UNLOQ.io personal encryption keys to generate shared secret keys, used to perform end-to-end encryption (above TLS) from your node.js apps to your browser. In this scenario, the loglet.io servers are working in zero-knowledge state.
The plugin was created to seamlessly integrate your application with loglet.io. For a more extensive view on how the logs are going to be sent, visit the repo.
# install the plugin npm i --save thorin-plugin-loglet@1.x
'use strict'; // app.js entry file const thorin = require('thorin'); thorin.addPlugin(require('thorin-plugin-loglet')); // <-- add this line thorin.run((err) => {});
By default, the plugin will send the following information inside a log entry. Additional informatino can also be sent when logging.
thorin.logger(namespace)
'use strict';
log.info('Simple message');
log.warn('Some weird stuff happened', {
tags: ['something','weird']
});
log.error('Oh well...', {
data: {
yourOwn: 'custom logger',
id: 2333
}
});
log.fatal('Fudge....', {
error: new Error("An error with its stacktrace captured"),
tags: ['somewhere-in-the-app']
});
You can always create a new issue on GitHub or contact one of the core founders by chat.