Process dependent logging