Add esctructure and log for info, error and debug