Clone of the http://sourceforge.net/p/log4javascript/