#include "common.h"#include "str.h"#include "config.h"#include <stdio.h>Go to the source code of this file.
cp_log_init(filename, level) should be called on startup with a log file name and a log level. the following macros may be used for logging messages.
before exiting, cp_log_close() should be called to ensure the log is flushed.
Definition in file log.h.
|
|
debug level |
|
|
quit - severe errors only |
|
|
very quiet - report fatal errors only |
|
|
normal log level Definition at line 34 of file log.h. Referenced by cp_http_response_write(). |
|
|
no logging |
|
|
relatively quiet - warnings only |
|
|
precision of seconds: undefine or use 1-6 |
|
||||||||||||
|
hex dump a cp_string Definition at line 665 of file log.c. Referenced by cp_ndump(). |
|
||||||||||||||||
|
||||||||||||||||
|
print out a LOG_LEVEL_FATAL log message and exit. if log_level is LOG_LEVEL_SILENT, the error message is supressed but the process still exits. Definition at line 568 of file log.c. Referenced by cp_client_init(), cp_pooled_thread_client_interface_create(), cp_pooled_thread_scheduler_create(), and cp_thread_pool_create(). |
|
||||||||||||
|
unconditionally log a message Definition at line 242 of file log.c. Referenced by cp_http_response_write(). |
|
||||||||||||||||
|
hex dump up to len bytes of a cp_string Definition at line 726 of file log.c. References cp_dump(). Referenced by cp_http_response_write(). |
|
||||||||||||||||
|
unconditionally log a limited length message Definition at line 257 of file log.c. Referenced by cp_http_response_write(). |
|
||||||||||||||||||||
|
print out a LOG_LEVEL_ERROR log message with an errno code Definition at line 509 of file log.c. References cp_hashtable_get(). Referenced by cp_client_close(), cp_client_create(), cp_client_reopen(), cp_socket_connection_close(), and cp_socket_listen(). |
|
||||||||||||
|
print out a LOG_LEVEL_WARNING log message Definition at line 451 of file log.c. Referenced by cp_http_service_delete(). |
1.3.9.1