-
Notifications
You must be signed in to change notification settings - Fork 349
Enable log debug in PHP connector
pavel edited this page Mar 16, 2016
·
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.
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"
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.