Javascript Error Logging
import Stachebox from "stachebox";Stachebox Token Authentication
fetch(
"/stachebox/api/v1/authentication",
{
method : "HEAD"
}
).then( response => {
window.StacheboxLogger = new Stachebox( {
application : "My Application Name",
release : "1.0.1",
token : response.headers.get( "x-auth-token" )
} );
window.onerror = function( message, source, lineno, colno, error ) {
if( error ){
if( typeof error === "string" ){
error = new Error( error );
}
window.StacheboxLogger.log( error );
}
};
} );Basic Authentication
Logstash Module Direct API Logging with Token
Ad-Hoc Logging
Last updated
Was this helpful?