Skip to main content
Logs are the fastest way to understand why a service failed or behaved unexpectedly. Bearsampp records activity for each service it manages, and you can access those logs directly from the tray menu without opening any files manually.

Where log files are stored

All log files are written to the bearsampp/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 editing bearsampp.conf directly.
LevelNameWhat gets logged
0SimpleErrors only
1ReportErrors and warnings
2DebugDetailed activity including info messages
3TraceEverything — very verbose, for deep debugging
When troubleshooting a persistent issue, switch to Debug or Trace to capture as much detail as possible. Once the problem is resolved, switch back to Simple to keep log files small and easy to scan.

Controlling log archives

Bearsampp can rotate and archive older logs automatically. The maxLogsArchives 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:
1

Open the tray menu

Right-click the Bearsampp icon in the system tray.
2

Navigate to Tools

Select Tools → Clear temp folders.
3

Confirm

Bearsampp removes temporary files immediately. No restart is required.
Clearing temp folders does not affect your project files, databases, or configuration. It only removes internally generated temporary data.