log file printouts

377 views
Skip to first unread message

Rami A.

unread,
Apr 26, 2015, 3:28:35 AM4/26/15
to resour...@googlegroups.com
Hi there,

What is the standard way to print messages to a log file?
Do the output goes to the Apache logs?
Are there logging levels (DEBUG, INFO, WARN, ERROR)?

Thank you

Rami A.

unread,
Apr 28, 2015, 9:52:15 AM4/28/15
to resour...@googlegroups.com
If anyone is interested in this, add the following to your config.php:

# Log developer debug information to the debug log (filestore/tmp/debug.txt)?
# As the default location is world-readable it is recommended for live systems to change the location to somewhere outside of the web directory by setting $debug_log_location below
$debug_log = true;

# Debug log location. Optional. Used to specify a full path to debug file. Ensure folder permissions allow write access by web service account
#$debug_log_location="d:/logs/resourcespace.log";
$debug_log_location="/var/log/resourcespace/resourcespace.log";

make sure there are write permissions to 
/var/log/resourcespace/resourcespace.log

Cheers
Reply all
Reply to author
Forward
0 new messages