Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
# 1. Configure logging with basicConfig()
# 2. Set level to logging.INFO
# 3. Add console handler
logging.basicConfig(
level=logging.INFO,
handlers=[logging.StreamHandler()])

# 4. Test by adding a log message when the app starts
logging.info("Application starting up")

app = FastAPI(title="LearningSteps API", description="A simple learning journal API for tracking daily work, struggles, and intentions")
app.include_router(journal_router)