Created
January 3, 2022 06:47
-
-
Save Goldziher/cf2f4768cb47e969b2c74b39865da189 to your computer and use it in GitHub Desktop.
Starlite Init Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from starlite import Starlite, LoggingConfig | |
from my_app.users import UserController | |
app = Starlite( | |
route_handlers=[UserController], | |
on_startup=[ | |
LoggingConfig(loggers={ | |
"my_app": { | |
"level": "INFO", | |
"handlers": ["console"], | |
}, | |
}) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment