Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
6:c55b013dfc2a
Child:
7:1af47e3a19b6
diff -r 921351ce6973 -r c55b013dfc2a consolelogger.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/consolelogger.c	Fri Jul 01 10:43:23 2016 -0700
@@ -0,0 +1,24 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+#include <stdlib.h>
+#ifdef _CRTDBG_MAP_ALLOC
+#include <crtdbg.h>
+#endif
+#include <stdarg.h>
+#include <stdio.h>
+#include "azure_c_shared_utility/xlogging.h"
+
+void consolelogger_log(LOG_CATEGORY log_category,unsigned int options, const char* format, ...)
+{
+	va_list args;
+	va_start(args, format);
+	(void)vprintf(format, args);
+	va_end(args);
+
+    (void)log_category;
+	if (options & LOG_LINE)
+	{
+		(void)printf("\r\n");
+	}
+}