Skip to content

Enable log debug in PHP connector

pavel edited this page May 18, 2016 · 9 revisions

If you have any problem using filemanager you may want to see what's happening on the server-side.

It's now possible to log actions. To do so, there is two ways.

The JSON config file way

Edit your "filemanager.config.json", set logger value to true and, if you want to change the default file path ('/tmp/filemanager.log'), add the key logfile with the desired value - see example below:

   "logger": true,
   "logfile": "C:/filemanager_log.txt"

The connector way

Edit the filemanager.php file and add the following instructions just after creating the Filemanager instance:

$fm = BaseHelper::getInstance(); // instance creation
$fm->enableLog('/path/to/the/desired/file');

Notice that, by default, logs are located into /tmp/filemanager.log file.