init logr structure
init error structure