libyang REFACTOR major logging updates

Structured error information instead of a
single error message.
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 91f9a93..a6d1d79 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -4717,7 +4717,7 @@
     (*context)->parsed_mods = main_ctx->parsed_mods;
     ly_set_add((*context)->parsed_mods, mod_p, 1, NULL);
 
-    LOG_LOCSET(NULL, NULL, NULL, in);
+    ly_log_location(NULL, NULL, NULL, in);
 
     /* skip redundant but valid characters at the beginning */
     ret = skip_redundant_chars(*context);
@@ -4754,7 +4754,7 @@
     *submod = mod_p;
 
 cleanup:
-    LOG_LOCBACK(0, 0, 0, 1);
+    ly_log_location_revert(0, 0, 0, 1);
     if (ret) {
         lysp_module_free(&fctx, (struct lysp_module *)mod_p);
         lysp_yang_ctx_free(*context);
@@ -4787,7 +4787,7 @@
     mod_p->mod = mod;
     ly_set_add((*context)->parsed_mods, mod_p, 1, NULL);
 
-    LOG_LOCSET(NULL, NULL, NULL, in);
+    ly_log_location(NULL, NULL, NULL, in);
 
     /* skip redundant but valid characters at the beginning */
     ret = skip_redundant_chars(*context);
@@ -4823,7 +4823,7 @@
     mod->parsed = mod_p;
 
 cleanup:
-    LOG_LOCBACK(0, 0, 0, 1);
+    ly_log_location_revert(0, 0, 0, 1);
     if (ret) {
         lysp_module_free(&fctx, mod_p);
         lysp_yang_ctx_free(*context);