Create a map to get the priority level for the error

Delete unused elog-lookup-template.mako.cpp file and update the
one in the tools directory.

Example of generated code for reference:
std::map<std::string,level> g_errLevelMap = {
         {"TestErrorOne",level::INFO},
         {"TestErrorTwo",level::ERR},
};

Change-Id: I5dcf47cb4827f80aa7a04bbe2beb181e28d7dafc
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/elog-lookup-template.mako.cpp b/elog-lookup-template.mako.cpp
deleted file mode 100644
index a96760e..0000000
--- a/elog-lookup-template.mako.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-## Note that this file is not auto generated, it is what generates the
-## elog-lookup.hpp file
-// This file was autogenerated.  Do not edit!
-// See elog-gen.py for more details
-#pragma once
-
-#include <map>
-#include <vector>
-
-namespace phosphor
-{
-
-namespace logging
-{
-
-std::map<std::string,std::vector<std::string>> g_errMetaMap = {
-    % for a in errors:
-    <% meta_string = '\",\"'.join(meta[a]) %> \
-    {"${errors[a]}",{"${meta_string}"}},
-    % endfor
-};
-
-} // namespace logging
-
-} // namespace phosphor
diff --git a/tools/phosphor-logging/templates/elog-lookup-template.mako.cpp b/tools/phosphor-logging/templates/elog-lookup-template.mako.cpp
index e53067a..8e022ce 100644
--- a/tools/phosphor-logging/templates/elog-lookup-template.mako.cpp
+++ b/tools/phosphor-logging/templates/elog-lookup-template.mako.cpp
@@ -4,6 +4,7 @@
 // See elog-gen.py for more details
 #include <map>
 #include <vector>
+#include "log.hpp"
 
 namespace phosphor
 {
@@ -18,6 +19,13 @@
     % endfor
 };
 
+std::map<std::string,level> g_errLevelMap = {
+    % for a in errors:
+    <% meta_string = '\",\"'.join(meta[a]) %> \
+    {"${a}",level::${error_lvl[a]}},
+    % endfor
+};
+
 } // namespace logging
 
 } // namespace phosphor