How can I enable W3C extended log format on LAMP and where will the default log directory be located (and named what)? (or XAMPP)
You probably mean the W3C extended log format: http://www.w3.org/TR/WD-logfile.html
This format is mostly used on Microsoft IIS servers. I'm not sure if all required data is available in Apache and I couldn't find an example format string for you.
Simply put, you need to define the desired LogFormat in your Apache config, and then use the CustomLog option to specify where to write the logfile. Usually, depending on the settings, Apache writes its logs to /var/log/apache/, /var/log/apache2/ or /var/log/httpd/ but check your Apache config to find out.
Since the W3C extended format is free form, there is no single answer, but the NCSA extended log format, which is similar to the W3C format, looks something like this:
Perhaps you could customize the parameters to get the info you want.