Change logging format
Export functions used in logging