In the exsting application we use a small Sqlite database to hold logs and proovide a method to send these to the host on request. New application requires something similair, might be worth investigation if an existing framework already exists.