What is the problem with nodejs log4js cutting log abnormalities based on date?

log4js.json

{
  "appenders": [
    {
      "category": "iap",
      "type": "dateFile",
      "filename": "logs/iap_record.log",
      "pattern": "-yyyy-MM-dd",
      "layout": {
        "type": "messagePassThrough"
      }
    }
  ],

  "levels": {
    "iap":  "INFO"
  }
}

the last time the name was changed with stat iap_record.log-2018-03-29 , it was found that it was cut at 2018-03-30 01:32:23 . What happened?

Feb.28,2021
Have you solved the problem of

? I also encountered the same problem

Menu