Skip to content

Enable log debug in PHP connector

simogeo edited this page Feb 13, 2013 · 6 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 config.filemanager.js file, 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

just edit the filemanager.php file and add the following instructions just after creating the Filemanager obejct :

$fm = new Filemanager(); // object creation
$fm->enableLog('/path/to/the/desired/file');

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

Clone this wiki locally