I am working on the application where I need logging and filtering feature. I am using c++. I came to know about the log4cxx support logging.
I am getting difficulty in filtering .
I have five fields
- MAcID
- Date and time
- Command type
- Status
- Text Msg
I need to store these 5 fields in the log file and filter it as well based on below filtering option. Logging and filtering will be done at run time itself. Once the file size reaches 10 MiB, it will start rewriting the file from the beginning.
Filtering Options
1. MAcID
2. date and time
Filtering can done by filtering either one or both. Result should return all the field in the log file .
- Is it possible to store more than one field in the log file using log4CXX?
- How to filter the information based on above mentioned criteria?
- Do I need to write my own filter class inheriting from existing filter classes?
- Do I need to write customise logger class to store 5 field in the log file?