Log redirection with block