If the requirement is to see the log on terminal itself and quit , without opening the editor we can use
export PAGER=cat command