I have the function Log which prints data along with passed arguments, how can I print the content & at the same time always print the word "Report: " at the beginning of the log.
function Log(){
if (app.debug_logs){
if(console && console.log){
console.log.apply(console, "Report: " + arguments);
}
}
}
Log(" error occurred ", " on this log... ");
I want to have:
"Report: error occurred on this log..."
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…