/[LeafOK_CVS]/lbbs/src/log.c
ViewVC logotype

Diff of /lbbs/src/log.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 by sysadm, Wed Jun 4 14:41:17 2025 UTC Revision 1.24 by sysadm, Mon Jun 16 14:30:44 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
17    #define _POSIX_C_SOURCE 200809L
18    
19  #include "log.h"  #include "log.h"
20  #include "io.h"  #include "io.h"
21  #include "common.h"  #include "common.h"
22  #include <stdarg.h>  #include <stdarg.h>
23  #include <sys/types.h>  #include <string.h>
24  #include <time.h>  #include <time.h>
25  #include <unistd.h>  #include <unistd.h>
26    #include <sys/types.h>
 #define _POSIX_C_SOURCE 200809L  
 #include <string.h>  
27    
28  #define STR_LOG_TIME_MAX_LEN 50  #define STR_LOG_TIME_MAX_LEN 50
29    
# Line 71  inline static void log_head(char *buf, s Line 71  inline static void log_head(char *buf, s
71          }          }
72          else // if (log_level == LOG_LEVEL_ERROR)          else // if (log_level == LOG_LEVEL_ERROR)
73          {          {
74                  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);
75          }          }
76  }  }
77    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1