implementing serializable interface and corresponding methods so Profiler does not try to serialize the entire logger