DBD::CSV and DBD::AnyData support DBI with flat files of various kinds. The latter includes some log formats and is easily extendable to handle others. Without knowing more about your needs I can't say if those would be useful or if you'd be better off with some of the modules in the Log::* hierarchy.