Skip to content

#59 server log #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 31, 2025
Merged

#59 server log #75

merged 7 commits into from
Mar 31, 2025

Conversation

cercil0605
Copy link
Member

@cercil0605 cercil0605 commented Mar 30, 2025

Issue

概要

Flask標準出力のログと本番用のオリジナルログの出力を分ける。

やったこと

  • loggerを追加、開発環境のときは標準、オリジナルログが両方出力。本番はオリジナルログのみ出力
  • オリジナルログはエラーハンドリングが施されている部分のみ実装
  • フォーマットはこんな感じ
[03/30/25 15:13:18] INFO     GET /test - GET request 

動作確認方法

実際にブランチを受け継いで動作確認してみて。場合によってはPytestの導入も必要かも

@cercil0605 cercil0605 requested a review from kimurash March 30, 2025 15:14
@cercil0605 cercil0605 self-assigned this Mar 30, 2025
@cercil0605 cercil0605 requested a review from kimurash March 31, 2025 00:55
@cercil0605 cercil0605 merged commit bcd362f into main Mar 31, 2025
2 checks passed
@cercil0605 cercil0605 deleted the #59-server-log branch March 31, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

バックエンドサーバのログの設定
2 participants