My own implementation of a logger for javascript.