Hello All:
I am trying to set up Emoncms in Windows 10. I have a wamp server running. The last piece of this particular puzzle is giving Emoncms a place to put the log file.
I made the changes in the settings.php file.
The WindowsInstall guide showed this. $log_filename = dirname(FILE).'\\' . 'emoncms.log';
I wrote this in the config file. $log_filename = 'wamp64(logs). '\\' . 'emonscms.log';
When i tried to load emoncms,I got this error in Chrome.
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in C:\wamp64\www\emoncms\settings.php on line 131
Call Stack
# Time Memory Function Location
1 0.0011 293328 {main}( ) ...\index.php:0
2 0.0021 321304 require( 'C:\wamp64\www\emoncms\process_settings.php' ) ...\index.php:18
I would like some help in putting the correct line in the config file.
Best Regards: AndyMc
Re: Windows Logfile location
I haven't got an installation on Windows to check, but there was some discussion on Github recently whether there should be one backslash or two.
If you could try just one backslash, and perhaps update us how you get on.
Paul
Re: Windows Logfile location
Sometimes a short glance is as good as a long stare. Two issues of my doing. Misspelled emoncms as emonscms and an extra apostrophe in front of dirname. From another thread, i used this.
$log_filename = 'emoncms.log';
This allows me to open Emoncms but i don't know where the log file might be.
Re: Windows Logfile location
If you use the line as
$log_filename = dirname(FILE).'\\' . 'emoncms.log';
Then the logfile is written in the docroot of the EmonCMS directory.