Crude first version of log scanner