Task scheduler and logger