logging in serial class