Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
xlogging.c@6:c55b013dfc2a, 2016-07-01 (annotated)
- Committer:
- Azure.IoT Build
- Date:
- Fri Jul 01 10:43:23 2016 -0700
- Revision:
- 6:c55b013dfc2a
- Child:
- 7:1af47e3a19b6
1.0.10
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Azure.IoT Build | 6:c55b013dfc2a | 1 | // Copyright (c) Microsoft. All rights reserved. |
Azure.IoT Build | 6:c55b013dfc2a | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
Azure.IoT Build | 6:c55b013dfc2a | 3 | |
Azure.IoT Build | 6:c55b013dfc2a | 4 | #include "azure_c_shared_utility/xlogging.h" |
Azure.IoT Build | 6:c55b013dfc2a | 5 | #include "azure_c_shared_utility/consolelogger.h" |
Azure.IoT Build | 6:c55b013dfc2a | 6 | |
Azure.IoT Build | 6:c55b013dfc2a | 7 | static LOGGER_LOG global_log_function = consolelogger_log; |
Azure.IoT Build | 6:c55b013dfc2a | 8 | |
Azure.IoT Build | 6:c55b013dfc2a | 9 | void xlogging_set_log_function(LOGGER_LOG log_function) |
Azure.IoT Build | 6:c55b013dfc2a | 10 | { |
Azure.IoT Build | 6:c55b013dfc2a | 11 | global_log_function = log_function; |
Azure.IoT Build | 6:c55b013dfc2a | 12 | } |
Azure.IoT Build | 6:c55b013dfc2a | 13 | |
Azure.IoT Build | 6:c55b013dfc2a | 14 | LOGGER_LOG xlogging_get_log_function(void) |
Azure.IoT Build | 6:c55b013dfc2a | 15 | { |
Azure.IoT Build | 6:c55b013dfc2a | 16 | return global_log_function; |
Azure.IoT Build | 6:c55b013dfc2a | 17 | } |