Standard Apache Access Logging
Using Apache's basic logging features, you can keep track of who visits your Web sites by logging accesses to the servers hosting them. You can log every aspect of the requests and responses, including the IP address of the client, user, and resource accessed. You need to take three steps to create a request log:
1. |
Define
what
you want to log—
your log format. |
2. |
Define
where
you want to log it—
your log files, a database, an external program. |
3. |
Define
whether
or not to log—
conditional logging rules. |
Deciding What to Log
You can log nearly every aspect associated with the request. You can define how your log entries look by creating a log format. A log format is a string that contains text mixed with log formatting ...
Get Sams Teach Yourself PHP, MySQL® and Apache All in One now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.