Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
potrLog.h
Go to the documentation of this file.
1
25
26#ifndef POTR_LOG_H
27#define POTR_LOG_H
28
29#include <porter_type.h>
30
31#ifdef __cplusplus
32extern "C"
33{
34#endif /* __cplusplus */
35
50void potr_log_write(PotrLogLevel level, const char *file, int line,
51 const char *fmt, ...);
52
68#define POTR_LOG(level, ...) \
69 potr_log_write((level), __FILE__, __LINE__, __VA_ARGS__)
70
71#ifdef __cplusplus
72}
73#endif /* __cplusplus */
74
75#endif /* POTR_LOG_H */
通信ライブラリの型定義ファイル。
PotrLogLevel
ログレベル。
void potr_log_write(PotrLogLevel level, const char *file, int line, const char *fmt,...)
ログメッセージを書き込みます (内部関数)。
Definition potrLog.c:128