Sometimes, especially for client code I extend this function with:
// inside log functionconstlogcmd=function(level){if(level===8){return'warn';}elseif(level===16){return'error';}else{return'log';}};// and then log withconsole[logcmd(level)]('the log string');
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.
Thanks Manuel,
logging is always the first feature I implement, I mostly use a own function like:
Sometimes, especially for client code I extend this function with: