A lightweight logging solution based on elasticsearch/logstash.
JavaScript library is designed to be used both in node and in browser apps.
Add dependncy into your app's package.json file:
"dependencies": {
"va": "file:<path_to_repo>/js/library",
}
and then import library class into your app.js file:
const LogEvent = require('va').LogEvent;
See example for how-to.
Copy <path_to_repo>/js/library and then include the script into your web app:
<script src='/asset?url=https%3A%2F%2Fgithub.com%2Fsourcerer-io%2Fjs%2Flibrary%2FLogEvent.js'</script>
Refer to example for complete steps.
To build the libarary and its example:
cd kotlin && gradle build;
You can run the example by:
cd sample && gradle run;