Commit Graph

53 Commits (a451179f3a1d1a2267dcb8b377d11856d6f3d12a)

Author SHA1 Message Date
YuQing a4cae13e07 add function fc_ftoa 2025-09-10 15:06:17 +08:00
YuQing 8e51f4de3e logger.h export function log_it_ex3 2025-08-20 17:54:29 +08:00
YuQing 6f4b3b7cd8 rename fc_combine_two_string to fc_combine_two_strings 2025-08-09 15:21:08 +08:00
YuQing b1f3c7894e add functions short2HEX, int2HEX, long2HEX 2025-08-08 21:49:43 +08:00
YuQing ec2db7cd33 replace sprintf and snprintf as necessary 2025-08-07 19:55:41 +08:00
YuQing 558670bc63 performance opt.: replace sprintf as necessary 2025-08-04 17:34:57 +08:00
YuQing 7f699688c0 add functions: get_log_level and get_log_level_caption 2024-04-08 15:15:34 +08:00
YuQing 89e70977d5 logger.c: log_set_prefix and log_set_filename support re-entry 2023-11-21 15:56:51 +08:00
YuQing e254b8e1d3 open file with flag O_CLOEXEC 2022-06-24 18:52:39 +08:00
YuQing 3fd3b167a8 small changes for logger.[hc] 2022-03-09 09:53:36 +08:00
YuQing 12aab5f94c small changes for logger.c 2021-02-01 09:27:18 +08:00
YuQing 89abbd2ee4 use readdir instead of readdir_r in Linux 2020-12-24 18:34:16 +08:00
YuQing 56a5ac4f92 modify license to LGPLv3 and copyright 2020-10-14 11:03:46 +08:00
YuQing 41e4e6f079 replace function call system to getExecResult 2019-12-06 11:49:35 +08:00
YuQing 414f20fa61 init compress_log_days_before to 1 2019-12-01 20:34:12 +08:00
YuQing 22a6115c4e delete old file refine 2019-11-30 16:23:46 +08:00
YuQing d818e59009 add function get_gzip_command_filename 2019-11-30 15:33:59 +08:00
YuQing 938a6a7fac modify website name 2019-11-23 10:03:54 +08:00
yuqing 3e47901340 logger.c add new line with fprintf 2018-07-10 18:34:44 +08:00
yuqing 679c8162fa logger.h: add function log_get_level_caption 2018-05-11 18:32:40 +08:00
yuqing 7a0fae8f01 logger judge log_level in function log_it_ex and log_it_ex1 2017-02-09 18:35:39 +08:00
yuqing 14b477f034 add time_precision macro: LOG_TIME_PRECISION_NONE 2017-02-07 15:25:34 +08:00
yuqing 100ae31704 Revert "log support replace space chars"
This reverts commit aa683c2324.
2016-11-24 19:55:51 +08:00
yuqing aa683c2324 log support replace space chars 2016-11-24 19:15:23 +08:00
yuqing ef019ab04a logger context add field: use_file_write_lock 2016-11-13 14:22:12 +08:00
Yuqing b16e56b9a3 id generator for multi processes 2016-04-10 17:44:10 +08:00
yuqing 6bd718079e add file lock and unlock functions 2016-04-09 22:11:28 +08:00
yuqing 1bdc948909 remove debug info 2016-03-18 08:44:18 +08:00
yuqing 0103aef791 add logger parameter: compress_log_days_before 2016-03-16 09:18:57 +08:00
yuqing ef8d758a3c support compress log file in new thread 2016-03-01 16:00:29 +08:00
yuqing 72f0214695 logger support compress the log file 2016-02-29 18:37:10 +08:00
yuqing 89d7ea6d27 call log_check_rotate anyway 2015-08-20 14:43:47 +08:00
yuqing c623a6c935 correct logger rotate time near 0 clock 2015-07-24 09:44:31 +08:00
yuqing 0fd3425fb6 bug fixed: log header correctly when rotate 2015-05-15 14:02:39 +08:00
yuqing 8b9bdfd333 logger.c call log_check_rotate in lock 2015-05-15 11:16:14 +08:00
yuqing 72e75e039d use file lock when write logger header 2015-05-08 17:49:19 +08:00
yuqing e7b2874e2a can call sched_add_entries many times before schedule 2014-12-05 18:12:02 +08:00
yuqing 60b1f50c1f bug fixed: must check the return value of vsnprintf 2014-12-05 09:54:48 +08:00
yuqing c0778f54fb remove usleep call in logger.c 2014-11-05 18:30:47 +08:00
yuqing 865cb7032a remote debug statement 2014-10-29 10:11:22 +08:00
yuqing 757a3b96a7 delete log old files with any time format affix 2014-09-16 11:26:17 +08:00
yuqing aafcd765dc check file size before log access header 2014-09-15 14:22:12 +08:00
yuqing c790ac5208 add function log_set_fd_flags 2014-08-27 16:06:27 +08:00
yuqing ba60d10858 extern function log_rotate 2014-08-26 15:30:49 +08:00
yuqing d88e9a6408 add function log_reopen_ex 2014-08-26 13:46:24 +08:00
yuqing e1cbe753ba logger can take over stderr and stdout 2014-08-07 14:18:14 +08:00
yuqing 4a66dbf4a6 log_set_filename_ex check filename NULL 2014-08-06 10:48:41 +08:00
yuqing 31db77f3cd logger.c do NOT call fsync after write 2014-07-02 18:14:15 +08:00
yuqing 28dcc9d099 log time format 2014-06-27 10:56:15 +08:00
yuqing 101caed964 logger can delete old rotated files 2014-06-24 16:37:03 +08:00