tokenize logging