change create_logs_array helper to initialise array instead of hash.