1.mysql
log-error=D:/phpstudy/MySQL/mysql_log_err.txt //err log for mysql self
log=D:/phpstudy/MySQL/mysql_log.txt //异常登录信息等
2、apache
D:\phpstudy\Apache\conf\httpd.conf
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog "logs/access.log" common