0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

nginx.conf error_log

Last updated at Posted at 2025-04-09

error_log /var/log/nginx/error.log {設定レベル};

error_log
出力レベル
nginx.conf設定レベル
emerg alert crit error warn notice info debug
emerg 出力 出力 出力 出力 出力 出力 出力 出力
alert - 出力 出力 出力 出力 出力 出力 出力
crit - - 出力 出力 出力 出力 出力 出力
error - - - 出力 出力 出力 出力 出力
warn - - - - 出力 出力 出力 出力
notice - - - - - 出力 出力 出力
info - - - - - - 出力 出力
debug - - - - - - - 出力

ログレベル 内容
debug 詳細なデバッグ情報を記録する。トラブルシューティングに役立つレベル。
info サーバーの基本動作や一般的な情報を記録。通常の運用におすすめ!
notice 注意が必要だけど重大ではない事象を記録。
warn 潜在的な問題や警告を記録。
error エラー情報を記録。ただしサーバーの動作は継続できるレベル。
crit 重大なエラーを記録。サーバーが危機的な状況にある場合。
alert 直ちに対応が必要な問題を記録。
emerg サーバーが完全に動作不能な状況を記録。

エラーパターン 例 内容
404エラー /index.html not found リクエストしたファイルやページが存在しない
500エラー Internal Server Error サーバー内部での処理が失敗
セッションエラー Session timed out セッションが切れたり設定ミスが発生
アクセス拒否 Permission denied 権限不足でリソースへのアクセスが拒否される
プロキシエラー Gateway timeout プロキシサーバーとの通信に問題

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?