Within my javascript code, there exists a static class...
var Logger = {
logtofirefox: function (str, priority) {
console.log(str);
},
logtoie: function (str, priority) {
alert(str);
}
}
When invoking this class from another file, I use the following syntax...
Logger.log('Hello World');
However, I am interested in adding the string 'log : ' before any message passed to these functions.
Is there a straightforward way to achieve this with minimal effort?