save the Exception or normal logs