RDK Documentation (Open Sourced RDK Components)
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
dsclientlogger.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 /**
22 * @defgroup devicesettings
23 * @{
24 * @defgroup rpc
25 * @{
26 **/
27 
28 
29 #ifndef _DS_CLIENT_LOGGER_H_
30 #define _DS_CLIENT_LOGGER_H_
31 #include "dsclientregisterlog.h"
32 #include <stdio.h>
33 
34 int ds_client_log(int priority,const char *format, ...);
35 
36 #define INFO_LEVEL 0
37 #define WARN_LEVEL 1
38 #define ERROR_LEVEL 2
39 #define DEBUG_LEVEL 3
40 
41 
42 
43 #define INT_INFO(FORMAT, ...) ds_client_log(INFO_LEVEL ,FORMAT, ##__VA_ARGS__ )
44 #define INT_WARN(FORMAT, ...) ds_client_log(WARN_LEVEL ,FORMAT, ##__VA_ARGS__ )
45 #define INT_ERROR(FORMAT, ...) ds_client_log(ERROR_LEVEL ,FORMAT, ##__VA_ARGS__ )
46 #define INT_DEBUG(FORMAT, ...) ds_client_log(DEBUG_LEVEL ,FORMAT, ##__VA_ARGS__ )
47 
48 
49 #endif
50 
51 
52 
53 /** @} */
54 /** @} */