JavaScript Logger utility loosely based on log4j that runs client-side and server-side