Set logging format