log using deque