html - Logging service allowing simple <img/> interface -
i'm looking dead-simple logging web app (client-side) remote service/endpoint. sure, roll own, purpose of task, let's assume want existing service logentries/splunk/logstash viewers can still log debugging info if backend goes down.
most logging services offer api can import <script/>
onto page , use api le.log('string', data);
[logentries example]. pulls in js dependency , uses cross-domain xhr well-founded reasons (like uri length limitations).
my question if can point me service let me send simple query params "pixel" endpoint (similar how google analytics it). like:
<script> new image().src = 'http://something.io/pixel/log/<api_token>?some_data=1234'; </script>
-- or, in pure html --
<img src="http://something.io/pixel/log/<api_token>?some_data=1234" style="display:none" />
i'd assume of big names in logging-as-a-service space have i've not found (or it's specific turn search results).
this not analytics error logging, debugging, etc. fire-and-forget sort of stuff.
any advice appreciated.
it's possible logentries, offer pixel tracker.
they require data sent in base64 encoding, that's quite simple in javascript.
var encoded = encodeuricomponent(btoa("log message"));
this data can used in pixel tracker this:
<img src="https://js.logentries.com/v1/logs/{api-token}?e={encoded_data}/">
Comments
Post a Comment