Client- and serverside JavaScript logging framework