Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP Log ViewerNew to Visual Studio Code? Get it now.
PHP Log Viewer

PHP Log Viewer

Anton Vix

|
1 install
| (0) | Free
View and analyze PHP application logs (Yii2, Laravel, Symfony) in VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP Log Viewer

A VS Code extension for browsing and analysing PHP application log files (Laravel, Yii2) directly inside the editor.

Features

  • Automatic discovery — scans the workspace for log files matching configurable glob patterns.
  • Framework detection — recognises Laravel ([stacktrace]) and Yii2 (Stack trace:) formats automatically.
  • Activity bar panel — lists discovered log files grouped by modification date (Today / Yesterday / date).
  • Log viewer webview — opens a rich table with per-entry level badges, timestamps, channels, messages, collapsible stack traces with clickable file links, and JSON context.
  • Filtering — filter log entries by log level or free-text search across messages.
  • Pagination — large files are rendered 200 entries per page for fast opening.
  • Live tail — watch a log file in real time; new entries are prepended automatically.
  • Stack frame filtering — hide noisy third-party frames from stack traces using configurable path patterns. Toggle on/off directly in the toolbar without losing your settings.
  • Clear logs — truncate a single file or all discovered files from the tree view.
  • Path mappings — map container/remote paths to local paths so file links in stack traces open the correct local file.

Extension Settings

Setting Type Default Description
phpLogViewer.logPatterns string[] ["**/storage/logs/**/*.log", "**/runtime/logs/**/*.log", "**/*.log"] Glob patterns used to locate log files in the workspace.
phpLogViewer.exclude string[] ["**/node_modules/**", "**/vendor/**", "**/.git/**"] Glob patterns excluded from log file scanning.
phpLogViewer.ignoreStackFramePaths string[] ["/vendor/", "/storage/framework/"] Path fragments to filter out from stack traces. Frames containing any of these substrings are hidden. Set to [] to show all frames.
phpLogViewer.pathMappings object[] [] Map container/remote path prefixes to local paths. Each entry needs remote and local keys. ${workspaceFolder} is supported in local.

Path mappings example

"phpLogViewer.pathMappings": [
  { "remote": "/var/www/html", "local": "${workspaceFolder}" }
]

Commands

Command Description
PHP Log Viewer: Refresh Log Files Re-scan the workspace for log files.
PHP Log Viewer: Clear Log File Truncate the selected log file.
PHP Log Viewer: Clear All Log Files Truncate all discovered log files.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft