WMI for logging? Worst idea I ever heard. If WMI is what it means to me in Windows environment,
Windows Management Instrumentation[
^], than it is not meant for logging whatsoever kind. I am pretty sure sqlite is much better option.
If logging is event logging and not data acquisition (like SCADA historical data), than I suggest you use a logging library like
NLog[
^], which has several event writes like text file, but you can also log to SQLite (see:
http://softwarelounge.co.uk/archives/1611[
^]).
SQLite is really powerful for both targets, and you can fine-tune it to meet your overall requirements.