| 1 | /* |
| 2 | * Copyright (c) 2015 Moritz Grimm <[email protected]> |
| 3 | * |
| 4 | * Permission to use, copy, modify, and distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __LOG_H__ |
| 18 | #define __LOG_H__cxx . . $ `src/log.h:18:9`! |
| 19 | |
| 20 | #include "attributes.h"cxx . . $ `<file>/src/attributes.h`/ |
| 21 | |
| 22 | enum log_levelscxx . . $ log_levels# { |
| 23 | ALERTcxx . . $ ALERT., |
| 24 | ERRORcxx . . $ ERROR., |
| 25 | WARNINGcxx . . $ WARNING., |
| 26 | NOTICEcxx . . $ NOTICE., |
| 27 | INFOcxx . . $ INFO., |
| 28 | DEBUGcxx . . $ DEBUG. |
| 29 | }; |
| 30 | |
| 31 | int log_initcxx . . $ log_init(5c4306d8553b3696).(const char *); |
| 32 | void log_exitcxx . . $ log_exit(49f6e7a06ebc5aa8).(void); |
| 33 | |
| 34 | void log_set_verbositycxx . . $ log_set_verbosity(cb2f890c2fdad230).(unsigned int); |
| 35 | |
| 36 | int log_syserrcxx . . $ log_syserr(7edabc5ef8d007a9).(enum log_levelscxx . . $ log_levels#, int, const char *); |
| 37 | |
| 38 | int log_alertcxx . . $ log_alert(581fddd72a8db8fc).(const char *, ...) |
| 39 | ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(1) |
| 40 | ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(printf, 1, 2); |
| 41 | int log_errorcxx . . $ log_error(581fddd72a8db8fc).(const char *, ...) |
| 42 | ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(1) |
| 43 | ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(printf, 1, 2); |
| 44 | int log_warningcxx . . $ log_warning(581fddd72a8db8fc).(const char *, ...) |
| 45 | ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(1) |
| 46 | ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(printf, 1, 2); |
| 47 | int log_noticecxx . . $ log_notice(581fddd72a8db8fc).(const char *, ...) |
| 48 | ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(1) |
| 49 | ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(printf, 1, 2); |
| 50 | int log_infocxx . . $ log_info(581fddd72a8db8fc).(const char *, ...) |
| 51 | ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(1) |
| 52 | ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(printf, 1, 2); |
| 53 | int log_debugcxx . . $ log_debug(581fddd72a8db8fc).(const char *, ...) |
| 54 | ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(1) |
| 55 | ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(printf, 1, 2); |
| 56 | |
| 57 | #endif /* __LOG_H__ */ |