/[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.26 by sysadm, Sat Jun 21 02:15:18 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #include "log.h"  
 #include "io.h"  
17  #include "common.h"  #include "common.h"
18    #include "io.h"
19    #include "log.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    


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

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