I have wrapped the console API to provide granular logging levels as well as few other sugar features.
This works fine, the only problem is that firebug (or whatever other console) will always report the line number the log came from as the line the console API itself is invoked.
How would you suggest I make the console log the line number at which I call my wrapper function?
I would prefer a cross browser solution but failing that a firebug plugin could be a good start.
fyi I call my loging function like so:
db.log(db.LogLevel.WARN, "Blah Blah Blah");