On Windows (also Linux and Unix) there is a C language API db2ReadLogNoConn that you can use to write your own program. It's described here: http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.apdv.api.doc/doc/r0009368.html
Another option is the DB2 Advanced Recovery Feature (http://www-03.ibm.com/software/products/en/db2-advanced-recovery-feature) which is capable of regenerating SQL statements from log records. I've never used it so I can't say if it's suitable for your purposes.
(I'm told to avoid extended discussions in comments so I'll put this as an answer.)