Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
md_log.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. 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 mod_md_md_log_h
18 #define mod_md_md_log_h
19 
20 typedef enum {
38 
39 #define MD_LOG_MARK __FILE__,__LINE__
40 
41 const char *md_log_level_name(md_log_level_t level);
42 
44 
45 void md_log_perror(const char *file, int line, md_log_level_t level,
46  apr_status_t rv, apr_pool_t *p, const char *fmt, ...)
47  __attribute__((format(printf,6,7)));
48 
49 typedef int md_log_level_cb(void *baton, apr_pool_t *p, md_log_level_t level);
50 
51 typedef void md_log_print_cb(const char *file, int line, md_log_level_t level,
52  apr_status_t rv, void *baton, apr_pool_t *p, const char *fmt, va_list ap);
53 
54 void md_log_set(md_log_level_cb *level_cb, md_log_print_cb *print_cb, void *baton);
55 
56 #endif /* md_log_h */
const char * md_log_level_name(md_log_level_t level)
Definition: md_log.h:23
Definition: md_log.h:34
Definition: md_log.h:33
Definition: md_log.h:31
void md_log_perror(const char *file, int line, md_log_level_t level, apr_status_t rv, apr_pool_t *p, const char *fmt,...) __attribute__((format(printf
void md_log_set(md_log_level_cb *level_cb, md_log_print_cb *print_cb, void *baton)
Definition: md_log.h:27
Definition: md_log.h:32
md_log_level_t
Definition: md_log.h:20
Definition: md_log.h:30
Definition: md_log.h:21
apr_pool_t * p
Definition: md_log.h:25
Definition: md_log.h:29
void md_log_print_cb(const char *file, int line, md_log_level_t level, apr_status_t rv, void *baton, apr_pool_t *p, const char *fmt, va_list ap)
Definition: md_log.h:51
Definition: md_log.h:24
void typedef int md_log_level_cb(void *baton, apr_pool_t *p, md_log_level_t level)
Definition: md_log.h:26
#define __attribute__(__x)
Definition: apr.h:63
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
Definition: md_log.h:36
int apr_status_t
Definition: apr_errno.h:44
Definition: md_log.h:35
int md_log_is_level(apr_pool_t *p, md_log_level_t level)
Definition: md_log.h:22
Definition: md_log.h:28