setup logger and defined structure