日期:2014-05-16 浏览次数:20468 次
public string ExecLogger(List<string> datakey, List<string> datavalue, string data)
{
string result = "";
lock (allLock)
{
string LOG_FUNC_NAME = datavalue[datakey.FindIndex(s => s.Equals("LOG_FUNC_NAME"))].ToString();
LOG_FUNC_NAME = LOG_FUNC_NAME.StartsWith("<") ? LOG_FUNC_NAME.TrimStart('<').Split('>')[0] : LOG_FUNC_NAME;
string LOG_ID = datavalue[datakey.FindIndex(s => s.Equals("LOG_ID"))].ToString();
//string LOG_ID = "f23c6547-5a60-4469-ae1e-fa479b85f2e4";
string LOG_TYPE = datavalue[datakey.FindIndex(s => s.Equals("LOG_TYPE"))].ToString();
string execlogger = string.Empty;
try
{
this.CreateTable(LOG_FUNC_NAME);
if (LOG_TYPE == "CREATE")
{
if (CheckIsOver(datakey.Count, 13)) return result;
if (CheckRow(LOG_FUNC_NAME, LOG_ID))
{
return result;
}
Thread.CurrentThread.Priority = ThreadPriority.AboveNormal;
string key = string.Empty;
string value = string.Empty;