Implemented log in terminal.