I am developing a software package (it will include several programs, in the future it is possible to expand the complex by adding new programs) and the question arose about the file format for logs. The project is written in C #.
Programs from the complex will keep logs of their work. It seems to be nothing special, but I’ve conceived such a thing: in order not to dig into the logs, not to look for what we say on Friday the 13th at 13:13:13, I decided to create a separate program (something like the log parser) that will parse the logs, search for the necessary information for the specified date and time period, and so on. There was a question about how to organize logs: in the form of files or databases with separate tables for each program.
I am at a crossroads: on the one hand, text files are convenient, it will only be necessary to develop your own format. XML files are a great option for this purpose. On the other hand, one database, but a bunch of tables, moreover, is not very happy with the prospect of creating a new table each time (when adding a new program to the complex). But SQL is behind the database, i.e. I will be able to more easily implement the idea with this logger parser.
In general, I tend to the files. Maybe there is a more flexible solution or someone faced with a similar task?
UPD
When the file system logs - every day a new file (for example, calling the file on 03/04/2013 (Monday), tomorrow will be 03/05/2012 (Tuesday), etc.), respectively. the files will be small, and the database will eventually grow and become thick. Number of files will also grow.