from fastapi import FastAPI import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) app = FastAPI() @app.get("/") async def root_test(): logger.info("Root endpoint/ akses") return{"message": "Hello hf"} @app.get("/test-hf") async def test_endpoint(): logger.info("berhasil akses endpont /test-hf") return {"message": "Test endpoint workk!"}