Writing and reading system logs - CityWebConsultants/Iris GitHub Wiki

The logs page and the main.log file in your site's /logs folder lists any messages that the system has reported including logs when an entity has been created, edited or deleted, when the server has been restarted and error messages generated by the system.

The logs are all stored as JSON in the logs folder of your site's folder within the home/sites/YOURSITENAME/logs directory.

The logs are colour coded based on their level. The available log levels are:

  • trace
  • debug
  • info
  • warn
  • error
  • fatal

To log within an Iris module use the iris.log() function. For example:

iris.log("info", "a page was created")

To clear the logs, delete the main.log file in the logs directory. A new one will be created and written to.