Use structured logger instead of print statements