ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install loglog運用ログを絞って読むときに
運用ログは継続的に増え、一つの診断に不要な情報を大量に含みます。
log [<file>|<dir>] [-h] [-n <lines>] [-g <text>] [-i] [-l] [-r]log検出された最新のログを表示
log <file>指定したログファイルを読む
log <dir>指定ディレクトリからログを探す
log -l検出したログを一覧表示
log <dir> -lディレクトリ内のログを一覧表示
-hファイル先頭から読む
-n <lines>実際の行を 1~50000 行表示
-g <text>指定した文字列を含む行だけ表示
-i-g と併用して大文字小文字を無視
-rグループ化せず元の行を表示
用意された例をページ上でそのまま実行できます。結果は事前に生成されてブラウザに表示され、サーバーではターミナルコマンドを実行しません。
現在の互換バージョンをインストールします。全機能は Base、縮小版は Minimum を選び、すでに導入済みのモジュール更新には upgrade を使います。
Base と Minimum は同じ現在のモジュールリリースの二つのパッケージです。
ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install log縮小パッケージをインストールします。ローカルリファレンスは含まれず、
install log -mこの公開済みバージョンを正確に指定してインストールします。
install log -v 1.3.1upgrade が互換性を確認し、必要な場合だけブロックを置換します。
upgrade logコアや他のモジュールに触れず拡張ブロックを削除します。
install log -u例はコピーできますが、サイトは実行しません。実プロジェクトではパス、権限、破壊的オプションを確認してください。
log sandbox/logs/review.log学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
[20-Oct-2026 08:00:00 UTC]
PHP Notice: request started in /sandbox/src/start.php on line 12
[20-Oct-2026 08:00:01 UTC]
PHP Warning: missing configuration in /sandbox/src/config.php on line 18
Stack trace:
#0 /sandbox/src/index.php(20): loadSettings()
[20-Oct-2026 08:00:02 UTC]
PHP Debug: using fallback configuration
[20-Oct-2026 08:00:03 UTC]
PHP Fatal error: unable to initialize test connection in /sandbox/src/db.php on line 41
Stack trace:
#0 /sandbox/src/index.php(31): connect()log sandbox/logs/review.log -h学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
[20-Oct-2026 08:00:00 UTC]
PHP Notice: request started in /sandbox/src/start.php on line 12
[20-Oct-2026 08:00:01 UTC]
PHP Warning: missing configuration in /sandbox/src/config.php on line 18
Stack trace:
#0 /sandbox/src/index.php(20): loadSettings()
[20-Oct-2026 08:00:02 UTC]
PHP Debug: using fallback configuration
[20-Oct-2026 08:00:03 UTC]
PHP Fatal error: unable to initialize test connection in /sandbox/src/db.php on line 41
Stack trace:
#0 /sandbox/src/index.php(31): connect()log sandbox/logs/review.log -t学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
[20-Oct-2026 08:00:00 UTC]
PHP Notice: request started in /sandbox/src/start.php on line 12
[20-Oct-2026 08:00:01 UTC]
PHP Warning: missing configuration in /sandbox/src/config.php on line 18
Stack trace:
#0 /sandbox/src/index.php(20): loadSettings()
[20-Oct-2026 08:00:02 UTC]
PHP Debug: using fallback configuration
[20-Oct-2026 08:00:03 UTC]
PHP Fatal error: unable to initialize test connection in /sandbox/src/db.php on line 41
Stack trace:
#0 /sandbox/src/index.php(31): connect()log sandbox/logs/review.log -n 2学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
Stack trace:
#0 /sandbox/src/index.php(31): connect()log sandbox/logs/review.log -h -n 2学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
[20-Oct-2026 08:00:00 UTC]
PHP Notice: request started in /sandbox/src/start.php on line 12
[20-Oct-2026 08:00:01 UTC]
PHP Warning: missing configuration in /sandbox/src/config.php on line 18log sandbox/logs/review.log -g Warning学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
Filter: Warning
[20-Oct-2026 08:00:01 UTC]
PHP Warning: missing configuration in /sandbox/src/config.php on line 18log sandbox/logs/review.log -g warning -i学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
Filter: warning
[20-Oct-2026 08:00:01 UTC]
PHP Warning: missing configuration in /sandbox/src/config.php on line 18log sandbox/logs/review.log -g DEBUG学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
Filter: DEBUG
[no matching lines]log sandbox/logs/review.log -g error -i -r学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
Filter: error
[20-Oct-2026 08:00:03 UTC] PHP Fatal error: unable to initialize test connection in /sandbox/src/db.php on line 41log sandbox/logs/review.log -r学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
[20-Oct-2026 08:00:00 UTC] PHP Notice: request started in /sandbox/src/start.php on line 12
[20-Oct-2026 08:00:01 UTC] PHP Warning: missing configuration in /sandbox/src/config.php on line 18
Stack trace:
#0 /sandbox/src/index.php(20): loadSettings()
[20-Oct-2026 08:00:02 UTC] PHP Debug: using fallback configuration
[20-Oct-2026 08:00:03 UTC] PHP Fatal error: unable to initialize test connection in /sandbox/src/db.php on line 41
Stack trace:
#0 /sandbox/src/index.php(31): connect()log -l学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
2026-11-01 12:00:00 96 B sandbox/logs/app.log
2026-11-01 12:00:00 219 B sandbox/logs/errors.log
2026-10-20 08:00:00 487 B sandbox/logs/review.loglog sandbox -l学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
2026-11-01 12:00:00 96 B sandbox/logs/app.log
2026-11-01 12:00:00 219 B sandbox/logs/errors.log
2026-10-20 08:00:00 487 B sandbox/logs/review.loglog sandbox学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/app.log
2026-01-01T00:00:00Z INFO sandbox initialized
2026-01-01T00:00:01Z DEBUG sample event completedlog sandbox/logs/review.log -g no-such-event学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
File: sandbox/logs/review.log
Filter: no-such-event
[no matching lines]log sandbox/logs/missing.log学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Log file not foundlog sandbox/logs/review.log -n 0学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Line count must be between 1 and 50000log sandbox/logs/review.log -n 50001学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Line count must be between 1 and 50000log sandbox/logs/review.log -n abc学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Invalid line countlog sandbox/logs/review.log -i学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Option -i requires -g <text>log sandbox/logs/review.log -g学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Search text is requiredlog sandbox/logs/review.log -z学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Unknown option: -zlog sandbox/logs/review.log -l学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
List mode accepts a directory, not a filelog sandbox -l -g error学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
List mode does not accept a search filterlog sandbox/logs/review.log sandbox/logs/review.log学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
Too many pathssandbox/logs/app.log例では、保護されたドキュメント用 /sandbox/ ワークスペースのファイルまたはディレクトリを使います。
2026-01-01T00:00:00Z INFO sandbox initialized
2026-01-01T00:00:01Z DEBUG sample event completed