Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: consolelogger.c
- Revision:
- 6:c55b013dfc2a
- Child:
- 7:1af47e3a19b6
--- /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"); + } +}