Sample file log code