Parent Directory
|
Revision Log
|
Patch
| Revision 1.22 by sysadm, Wed Jun 4 14:41:17 2025 UTC | Revision 1.25 by sysadm, Tue Jun 17 13:17:04 2025 UTC | |
|---|---|---|
| # | Line 18 | Line 18 |
| 18 | #include "io.h" | #include "io.h" |
| 19 | #include "common.h" | #include "common.h" |
| 20 | #include <stdarg.h> | #include <stdarg.h> |
| 21 | #include <sys/types.h> | #include <string.h> |
| 22 | #include <time.h> | #include <time.h> |
| 23 | #include <unistd.h> | #include <unistd.h> |
| 24 | #include <sys/types.h> | |
| #define _POSIX_C_SOURCE 200809L | ||
| #include <string.h> | ||
| 25 | ||
| 26 | #define STR_LOG_TIME_MAX_LEN 50 | #define STR_LOG_TIME_MAX_LEN 50 |
| 27 | ||
| # | Line 71 inline static void log_head(char *buf, s | Line 69 inline static void log_head(char *buf, s |
| 69 | } | } |
| 70 | else // if (log_level == LOG_LEVEL_ERROR) | else // if (log_level == LOG_LEVEL_ERROR) |
| 71 | { | { |
| 72 | snprintf(buf, len, "[%s] [%d] [ERROR] [%s : %d] ", s_time, getpid(), app_file, app_line); | snprintf(buf, len, "[%s] [%d] [ERROR] [%s:%d] ", s_time, getpid(), app_file, app_line); |
| 73 | } | } |
| 74 | } | } |
| 75 |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |