A simple log file format

后端 未结 8 1107
广开言路
广开言路 2021-01-12 07:16

I\'m not sure if it was asked, but I couldn\'t find anything like this.

My program uses a simple .txt file for log purposes, It just creates/opens a file and appends

8条回答
  •  -上瘾入骨i
    2021-01-12 07:50

    Basically you better just split logs according to severity. You'll rarely need to read all logs for the whole system. For example apache allows to configure error log and access log, pretty obvious what info exactly they have.

    If you're under linux system grep is your best tool to search through logs for specific entries.

提交回复
热议问题