blob: d2d39538c376d19167b7e7397ced9095555d56be [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
3 * Copyright (c) 2017 Intel Corporation
4 * Copyright (c) 2019, Infosys Ltd.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef __LOG_1_H_
20#define __LOG_1_H_
21
22#ifdef __cplusplus
23extern "C"{
24#endif
25
26enum log_levels{
27 LOG_INFO,
28 LOG_DEBUG,
29 LOG_WARNING,
30 LOG_ERROR,
31};
32
33void log_message(int l, const char *file, int line, const char *fmt, ...);
34//#define log_msg(LOG_LEVEL, ARGS) set_log(#LOG_LEVEL, __FILE__, __LINE__, __VA_ARGS__)
35#define log_msg(LOG_LEVEL, ...) log_message( LOG_LEVEL, __FILE__, __LINE__, __VA_ARGS__)
36//#define log_msg(LOG_LEVEL, ...) ;
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif /* __LOG_1_H_ */