Where are the log files located in Moodle?

丶灬走出姿态 提交于 2021-01-27 07:33:14

问题


I need to locate where the logging data is stored in Moodle. In the Moodle database there is a table called 'log' where log data is stored. However, I can get Moodle reports showing logging data that is definitely NOT stored in this table. I am using Moodle version 2.7.8.


回答1:


In the Moodle version I am using (2.7.8) you have three possibilities to log your data (called 'log stores'):

  1. Standard log: This is the default possibility. All the log data will be saved to the database table 'logstore_standard_log'. You can see here for example when a user has viewed a particular course, when a user has logged into the system, or logged out, etc.
  2. Legacy log: This is a log structure used in earlier versions of Moodle. All the log data have been saved to the database table 'log'.
  3. External database: you have here the possibility to choose and configure an external database in order to store your log data. The database connection, name, and other settings may be configured under Site administration->Plugins->Logging->Manage log stores->External database log settings.

Current information on logging can be found at: https://docs.moodle.org/dev/Logging_2



来源:https://stackoverflow.com/questions/31535381/where-are-the-log-files-located-in-moodle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!