Apache log intergration. In apache conf file one can use ${MOODULEUSER}n in LogFormat to get the current logged in username in moodle. Implemented by Patrick Li.

This commit is contained in:
martinlanghoff 2005-05-16 02:51:05 +00:00
parent 8465c58a8d
commit a559eee64e
2 changed files with 15 additions and 0 deletions

View file

@ -409,6 +409,12 @@ global $THEME;
}
}
/// Apache log intergration. In apache conf file one can use ${MOODULEUSER}n in
/// LogFormat to get the current logged in username in moodle.
if ($USER && function_exists('apache_note')) {
apache_note('MOODLEUSER', $USER->username);
}
/***
*** init_performance_info() {
***