Waitress doesn’t show anything when starting WSGI application

Solution 1
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s')
Solution 2
from flask import Flask
from waitress import serve
import logging

logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s')

app = Flask(__name__)


if __name__ == "__main__":
    serve(app)
2022-10-03 14:53:14,410 Serving on http://0.0.0.0:8080