extern function log_rotate
parent
d88e9a6408
commit
ba60d10858
1
HISTORY
1
HISTORY
|
|
@ -24,6 +24,7 @@ Version 1.06 2014-08-26
|
|||
* http_parse_query_ex support binary buffer, and set both lengths of key and name
|
||||
* add function ioevent_remove
|
||||
* add function log_reopen_ex
|
||||
* extern function log_rotate
|
||||
|
||||
Version 1.05 2012-07-08
|
||||
* update source code from FastDFS V3.09
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ int log_delete_old_files(void *args)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int log_rotate(LogContext *pContext)
|
||||
int log_rotate(LogContext *pContext)
|
||||
{
|
||||
struct tm tm;
|
||||
time_t current_time;
|
||||
|
|
|
|||
|
|
@ -255,6 +255,14 @@ int log_sync_func(void *args);
|
|||
*/
|
||||
int log_notify_rotate(void *args);
|
||||
|
||||
|
||||
/** rotate log file
|
||||
* parameters:
|
||||
* pContext: the log context
|
||||
* return: error no, 0 for success, != 0 fail
|
||||
*/
|
||||
int log_rotate(LogContext *pContext);
|
||||
|
||||
/** delete old log files
|
||||
* parameters:
|
||||
* args: should be (LogContext *)
|
||||
|
|
|
|||
Loading…
Reference in New Issue