uLib
ulog.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3 
14 #ifndef AZ_ULOG_H
15 #define AZ_ULOG_H
16 
17 #include "azure_macro_utils/macro_utils.h"
18 #include "ulib_config.h"
19 
20 #include <stdio.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* __cplusplus */
25 
26 extern const char* const AZ_ULOG_REQUIRE_EQUALS_STRING;
27 extern const char* const AZ_ULOG_REQUIRE_NOT_EQUALS_STRING;
28 extern const char* const AZ_ULOG_REQUIRE_NOT_NULL_STRING;
29 extern const char* const AZ_ULOG_REQUIRE_TYPE_OF_USTREAM_STRING;
30 extern const char* const AZ_ULOG_OUT_OF_MEMORY_STRING;
31 extern const char* const AZ_ULOG_REPORT_EXCEPTION_STRING;
32 
33 static const char* const AZ_ULOG_USTREAM_ILLEGAL_ARGUMENT_ERROR_STRING = "Passed ustream is not the correct type\r\n";
34 
38 typedef enum AZ_ULOG_TYPE_TAG {
41 } AZ_ULOG_TYPE;
42 
43 
47 extern const char* const AZ_ULOG_TYPE_STRING[];
48 
56 void az_ulog_print(AZ_ULOG_TYPE type, const char* const format, ...);
57 
58 #ifdef __cplusplus
59 }
60 #endif /* __cplusplus */
61 
62 #endif /* AZ_ULOG_H */
Configuration options for ulib.
enum AZ_ULOG_TYPE_TAG AZ_ULOG_TYPE
enum to select the log type
const char *const AZ_ULOG_TYPE_STRING[]
AZ_ULOG_TYPE string values.
AZ_ULOG_TYPE_TAG
enum to select the log type
Definition: ulog.h:38
void az_ulog_print(AZ_ULOG_TYPE type, const char *const format,...)
log function for ulib_config