logging and defaul terminal