[MAT-358] Move logging code to logging pkg