Log Directory Structure
All logs are centralized in thelogs directory at the same level as bin, config, and sites:
Runtime Logs
runtime.log
Location:logs/runtime.log
Purpose: Main Envloom application log tracking runtime operations, service management, and system events.
Format:
- Service start/stop operations
- Runtime installations and updates
- NVM operations (
nvm install,nvm use) - Configuration changes
- System-level errors
- Services fail to start or stop
- Runtime installations fail
- General troubleshooting of Envloom behavior
The runtime log uses timestamp format
YYYY-MM-DD HH:MM:SS with levels: INFO, WARN, ERROR.PHP Logs
PHP Error Logs (per version)
Location:logs/php/php-{version}.error.log
Examples:
logs/php/php-8_3.error.loglogs/php/php-8_2.error.loglogs/php/php-8_1.error.log
php.ini:
- Application shows white screen or 500 error
- PHP warnings or notices in development
- Fatal errors during site provisioning
- Debugging Laravel/Symfony applications
Viewing PHP Logs in Envloom
- Open Envloom application
- Navigate to Logs page
- Select PHP tab
- Choose version (“current” or specific version)
- Logs are displayed with syntax highlighting
Nginx Logs
Global Nginx Logs
Location:logs/nginx/
access.log: All HTTP requests across all siteserror.log: Nginx-level errors (upstream connections, file access, configuration errors)
Per-Site Nginx Logs
Location:logs/nginx/sites/{domain}.{access|error}.log
Examples:
logs/nginx/sites/mysite.test.access.loglogs/nginx/sites/mysite.test.error.log
- 502 Bad Gateway errors (PHP-FPM not responding)
- 404 errors (file not found)
- Slow site performance (check access log timestamps)
- SSL/HTTPS issues
Viewing Nginx Logs in Envloom
- Open Logs page
- Select Nginx tab
- Choose:
- General: Global access and error logs
- Site-specific: Logs for a particular domain
- Access log is shown on top, error log below
Nginx logs use standard Nginx log format. The access log can become large; consider rotating logs periodically.
MariaDB Logs
MariaDB Error Log
Location:logs/mariadb/mariadb.error.log
Purpose: Database server errors, warnings, and startup messages.
What it contains:
- MariaDB fails to start
- Port conflicts
- Corrupted tables or databases
- Authentication failures
MariaDB General Query Log
Location:logs/mariadb/mariadb.general.log
Purpose: All queries executed by MariaDB (enabled by default in Envloom).
What it contains:
- Debugging query issues
- Performance analysis
- Understanding what queries Laravel/Symfony is running
MariaDB Slow Query Log
Location:logs/mariadb/mariadb.slow.log
Purpose: Queries that take longer than the configured threshold (slow query log is enabled by default).
What it contains:
- Site performance issues
- Identifying unoptimized queries
- Database tuning
Viewing MariaDB Logs in Envloom
- Open Logs page
- Select MySQL tab (MariaDB logs)
- View error, general, or slow query logs
Log Configuration
PHP Logging Configuration
PHP logs are automatically configured when PHP is installed. The configuration is injected into each version’sphp.ini:
config/php.ini (base template) or config/php/{version}.ini (version-specific overrides).
MariaDB Logging Configuration
MariaDB logs are configured inconfig/mariadb/my.cnf:
my.cnf:
Nginx Logging Configuration
Nginx logs are automatically configured by Envloom when sites are created. Configuration is in:- Global:
bin/nginx/current/conf/nginx.conf - Per-site:
sites/{domain}.conf
Accessing Logs Quickly
From Envloom UI
- Logs Page: Navigate to Logs in the sidebar
- Auto-refresh: Click refresh button to reload logs
- Syntax Highlighting: Logs are displayed with color-coded highlighting using
@melloware/react-logviewer
From System Tray
- Right-click Envloom tray icon
- PHP submenu > Logs
- Nginx submenu > Access Log or Error Log
From File Explorer
Locate Envloom Directory
By default, Envloom stores logs relative to the executable.Development:
src-tauri/logs/Production: {Envloom Directory}/logs/Log Rotation and Maintenance
Manual log cleanup:Next Steps
- Review Common Issues for solutions to frequent problems
- Learn Advanced Debugging techniques for complex issues