Logger.addHandler(handler) # asign handler to loggerįrom import CORSMiddlewareĪpp = FastAPI(title="ABE-Backend", openapi_url="/openapi.json") tLevel(logging.DEBUG) # Set minimal log level Fortunately, Logtail provides simple as well as very advanced features that allow us to do that and much, much more. Handler = LogtailHandler(source_token="XXXXXXX") I call the logger and it should work but it does not, additionally I even do a log INSTANTLY after I instantiate the logger and it does not work. Duplicate project settings cross regionīy default, CLI store erros or warnings at ~/aliyunlogcli.log, it's also configurable via file ~/.I am using and for some reason it wont log ONLY in my FastAPI/UVICORN app, I tried using the package in an a different test python file and it worked? I dont understand what I am missing.
0 Comments
Leave a Reply. |