|
Document of c-modernization-kit (porter) 1.0.0
|
porter 内部ログマクロ定義ヘッダー。 More...
#include <porter_type.h>Go to the source code of this file.
Macros | |
| #define | POTR_LOG(level, ...) |
| porter 内部ログ出力マクロ。 | |
Functions | |
| void | potr_log_write (PotrLogLevel level, const char *file, int line, const char *fmt,...) |
| ログメッセージを書き込みます (内部関数)。 | |
porter 内部ログマクロ定義ヘッダー。
porter ライブラリ内部でのみ使用するログ出力マクロを定義します。
ライブラリ外部には公開しません。
公開 API は porter.h の potrLogConfig() を参照してください。
使用方法:
Definition in file potrLog.h.
| #define POTR_LOG | ( | level, | |
| ... ) |
porter 内部ログ出力マクロ。
FILE と LINE を自動付加して potr_log_write() を呼び出します。
設定レベルより低いメッセージは potr_log_write() 冒頭で早期リターンします。
Definition at line 68 of file potrLog.h.
Referenced by apply_service_kv(), check_and_update_session(), check_health_timeout(), check_reorder_timeout(), comm_recv_thread_start(), config_load_global(), config_load_service(), connect_thread_func(), drain_recv_window(), flush_packed(), flush_packed_peer(), health_thread_func(), n1_check_health_timeout(), n1_notify_health_alive(), n1_process_outer_pkt(), n1_recv_deliver(), n1_update_path_recv(), notify_connected_tcp(), notify_health_alive(), open_socket_tcp_sender(), peer_create(), peer_free(), peer_path_clear(), peer_table_destroy(), peer_table_init(), potr_connect_thread_start(), potr_connect_thread_stop(), potr_health_thread_start(), potr_tcp_health_thread_start(), potrCloseService(), potrDisconnectPeer(), potrOpenService(), potrOpenServiceFromConfig(), potrSend(), process_outer_pkt(), raw_session_disconnect(), receiver_accept_loop(), recv_deliver(), recv_thread_func(), reset_all_paths_disconnected(), send_ping_reply(), sender_connect_loop(), start_connected_threads(), tcp_connect_with_timeout(), tcp_health_thread_func(), tcp_recv_thread_func(), and tcp_recv_thread_start().
| void potr_log_write | ( | PotrLogLevel | level, |
| const char * | file, | ||
| int | line, | ||
| const char * | fmt, | ||
| ... ) |
ログメッセージを書き込みます (内部関数)。
| [in] | level | ログレベル。 |
| [in] | file | ソースファイル名 (FILE)。 |
| [in] | line | 行番号 (LINE)。 |
| [in] | fmt | printf 形式のフォーマット文字列。 |
| [in] | ... | フォーマット引数。 |
g_log_level より低いレベルのメッセージは無視されます (高速パス)。
本関数を直接呼び出さず、POTR_LOG マクロを使用してください。
Definition at line 128 of file potrLog.c.
References log_basename(), and s_trace.