So in your overall JavaScript window / class / enclosure just set the variable AppDebug to true to log everything, or leave it false and set AppDebugThreshold to a integer to only log debug messages above that "level."
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I wrap my console.log function in my own function.
Hopefully this helps someone.
Something like:
function myLog(level, input) {
if(!AppDebug && level < AppDebugThreshold) return;
console.log({level:level, log:input});
}
So in your overall JavaScript window / class / enclosure just set the variable
AppDebug
totrue
to log everything, or leave it false and setAppDebugThreshold
to ainteger
to only log debug messages above that "level."