add T108 mbtk_logd and liblog

Change-Id: Ib486a63a423e22ca07b3568a1b3c856b23e63ea3
diff --git a/mbtk/test/lynq_log_test.c b/mbtk/test/lynq_log_test.c
new file mode 100755
index 0000000..bdfa74e
--- /dev/null
+++ b/mbtk/test/lynq_log_test.c
@@ -0,0 +1,106 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <errno.h>
+#include <string.h>
+#include "json/json.h"
+#include "liblog.h"
+
+int main(int argc, char *argv[])
+{
+    int err, value;
+    int cmdIdx = 0;
+    int ret = 0;
+    int i = 0;
+    char operator[10];
+    int opt = 0;
+
+    lynq_log_configuration_init("MBTK_QL_TEST");
+
+    while(1)
+    {
+
+        printf("=========log========\n"
+            "\t 0 lynq_syslog_set_file_size\n"
+            "\t 1 lynq_syslog_get_file_size\n"
+            "\t 2 lynq_syslog_set_file_rotate\n"
+            "\t 3 lynq_syslog_get_file_rotate\n"
+            "\t 4 test write log\n"
+            "\t 5 EXIT \n"
+            "=========================\n");
+
+        fflush(stdin);
+        fgets(operator, sizeof(operator), stdin);
+        opt = atoi(operator);
+
+        switch(opt)
+        {
+            case 0://"lynq_syslog_set_file_size"
+            {
+                //fgets(arg_string, MAX_INPUT, stdin);
+                printf("please input size:\n");
+                scanf("%d", &value);
+                printf("Input value is %d\n",value);
+                ret = lynq_syslog_set_file_size(value);
+                if(ret < 0)
+                {
+                    printf("lynq_syslog_set_file_size failed, ret=%d\n", ret);
+                }
+
+                break;
+            }
+            case 1://"lynq_syslog_get_file_size"
+            {
+                //ret = demo_lynq_syslog_get_file_size();
+                ret = lynq_syslog_get_file_size();
+                printf("lynq_syslog_get_file_size ret:%d!\n", ret);
+
+                break;
+            }
+            case 2://"lynq_syslog_set_file_rotate"
+            {
+                printf("please input count:\n");
+                scanf("%d", &value);
+                printf("Input value is %d\n",value);
+                ret = lynq_syslog_set_file_rotate(value);
+                if(ret < 0)
+                {
+                    printf("lynq_syslog_set_file_rotate failed, ret=%d\n", ret);
+                }
+
+                break;
+            }
+            case 3://"lynq_syslog_get_file_rotate"
+            {
+                //ret = demo_lynq_syslog_get_file_rotate();
+                ret = lynq_syslog_get_file_rotate();
+                printf("lynq_syslog_get_file_rotate ret:%d!\n", ret);
+
+                break;
+            }
+            case 4://test write log
+            {
+                for(i=0;i<10;i++)
+                {
+                    LYVERBLOG("LYNQ: Test LYVERBLOG\n");
+                    LYERRLOG("LYNQ: Test LYERRLOG\n");
+                    LYWARNLOG("LYNQ: Test LYWARNLOG\n");
+                    LYINFLOG("LYNQ: Test LYINFLOG\n");
+                    LYDBGLOG("LYNQ: Test LYDBGLOG\n");
+                }
+
+                printf("test write log end\n");
+
+                break;
+            }
+            default://EXIT
+            {
+                printf("break\n");
+                return 0;
+            }
+        }
+    }
+
+    return 0;
+}
+