Use postactivate and make log file