UniMRCP  1.7.0
mrcp_sofiasip_logger.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MRCP_SOFIASIP_LOGGER_H
18 #define MRCP_SOFIASIP_LOGGER_H
19 
20 /**
21  * @file mrcp_sofiasip_logger.h
22  * @brief Sofia-SIP Logger
23  */
24 
25 #include "apt_log.h"
26 #include "mrcp.h"
27 
29 
30 /** Sofia-SIP log source */
31 APT_LOG_SOURCE_DECLARE(MRCP, sip_log_source)
32 
33 /** Sofia-SIP log mark providing log source, file and line information */
34 #define SIP_LOG_MARK APT_LOG_MARK_DECLARE(sip_log_source)
35 
36 /**
37  * Initialize Sofia-SIP log source.
38  */
40 
41 /**
42  * Initialize logger of the Sofia-SIP library.
43  */
44 MRCP_DECLARE(apt_bool_t) mrcp_sofiasip_log_init(const char *name, const char *level_str, apt_bool_t redirect);
45 
47 
48 #endif /* MRCP_SOFIASIP_LOGGER_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
void mrcp_sofiasip_logsource_init()
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
MRCP Core Definitions.
APT_LOG_SOURCE_DECLARE(MPF, mpf_log_source)
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
Basic Logger.
apt_bool_t mrcp_sofiasip_log_init(const char *name, const char *level_str, apt_bool_t redirect)