Menu

#3046 log: clean up number of older log file without closing current log file

5.19.07
fixed
nobody
None
enhancement
log
d
major
False
2019-07-22
2019-05-29
Canh Truong
No

Remove some log files after the priod time but the current of log file is not closed.
It is useful if user doesn't want the log file exist after some days. The current log file may be empty or don't have too much log records. It just remove the older log files and don't need to close current log file.

Improve the enhancement of ticket #3022

Related

Wiki: ChangeLog-5.19.07
Wiki: NEWS-5.19.07

Discussion

  • Canh Truong

    Canh Truong - 2019-05-31
    • assigned_to: Canh Truong
     
  • Canh Truong

    Canh Truong - 2019-06-03
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
     Remove some log files after the priod time but the current of log file is not closed. 
     It is useful if user doesn't want the log file exist after some days. The current log file may be empty or don't have too much log records. It just remove the older log files and don't need to close current log file. 
    
    -It is improvement from ticket #3022
    +Improve the enhancement  of ticket #3022
    
    • status: unassigned --> review
     
  • Canh Truong

    Canh Truong - 2019-06-18

    commit 68efc6010fda86d62300a687bbd8c52cba232479 (HEAD -> develop, origin/develop, ticket-3046)
    Author: Canh Van Truong canh.v.truong@dektech.com.au
    Date: Tue Jun 18 18:14:08 2019 +0700

    log: Delete the older file without closing current log file via admin operation [#3046]
    
    Improve the enhancement of ticket #3022, the user can rotate (delete) older log
    files without closing current log file.
    
    LOG add new parameter (numberOfFilesToRemove) to admin op command with id = 2.
     - If parameter exists, LOGD remove number of older file base on parameter value
     - If parameter is omitted, LOGD rotates log file normally. (closing current log
    file, rotate log file if needed, create new log file)
    
    This helps to avoid creating empty log file or small log file size
    
     
  • Canh Truong

    Canh Truong - 2019-06-18
    • status: review --> fixed
    • assigned_to: Canh Truong --> nobody
     
  • Gary Lee

    Gary Lee - 2019-07-22
    • Component: log --> amf
     
  • Gary Lee

    Gary Lee - 2019-07-22
    • Component: amf --> log
     

Log in to post a comment.