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
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.