Skip to content

Instantly share code, notes, and snippets.

@Goldziher
Created January 3, 2022 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Goldziher/cf2f4768cb47e969b2c74b39865da189 to your computer and use it in GitHub Desktop.
Save Goldziher/cf2f4768cb47e969b2c74b39865da189 to your computer and use it in GitHub Desktop.
Starlite Init Example
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