Where log files are stored
All log files are written to thebearsampp/logs/ folder. Each service writes to its own file within that directory. You can open these files in any text editor, but using the tray menu shortcuts described below is usually faster.
Accessing logs from the tray menu
Right-click the Bearsampp tray icon and navigate to the service you want to inspect:Apache
- Apache → Access logs — all incoming HTTP requests
- Apache → Error logs — configuration errors and runtime failures
- Apache → Rewrite logs — URL rewrite rule processing
PHP
- PHP → Logs — PHP errors, warnings, and notices
MySQL / MariaDB
- MySQL → Access logs — database connection activity
- MySQL → Error logs — startup failures and query errors
- MariaDB → Access logs — database connection activity
- MariaDB → Error logs — startup failures and query errors
Other services
Depending on the module, you may also see:
- Session logs — active session records
- Stats logs — usage statistics
- Transfer logs — file transfer records (Xlight FTP)
Log verbosity levels
Bearsampp supports four verbosity levels that control how much detail is written to log files. You can change the level from the tray menu under Settings → Logs verbose, or by editingbearsampp.conf directly.
| Level | Name | What gets logged |
|---|---|---|
0 | Simple | Errors only |
1 | Report | Errors and warnings |
2 | Debug | Detailed activity including info messages |
3 | Trace | Everything — very verbose, for deep debugging |
Controlling log archives
Bearsampp can rotate and archive older logs automatically. ThemaxLogsArchives setting in bearsampp.conf controls how many archived log files are kept before older ones are deleted. Set this to a lower number if disk space is a concern, or raise it if you need a longer history for auditing.
Freeing up disk space
Temporary files can accumulate over time and take up significant disk space. To clear them:Clearing temp folders does not affect your project files, databases, or configuration. It only removes internally generated temporary data.
