There are huge numbers of threads running in parallel continuously (let's assume this continuous part)). All the threads want to log some application data, basically a set of values.
- What would be the best approach to log this data? single/multiple file?
- What would be the best approach to make backup of this log?
- What would be the approach to read data from backup file and convert it into something useful?
Several threads like this and this suggest log4net and log4j but I want to know the actual process? Also how multiple threads write to same log file? Is file level lock required for each thread? How does all this work?
Any pointer towards understanding all the details would be appreciated.
Thanks.