Cloud logging

This is how you can set up cloud logging for your site.

To enable cloud logging, click on the System module, then Server log.

 log1

 

Now you'll see an overview of the logs currently registered in the system. New logs are registered here when the system tries to write to a non-existing log (see further down). New logs are disabled by default.

 

log2

 

As we can see, the 'Tutoriallog' is currently disabled. (The fact that it is shown here means that the system has already attempted to insert one or more rows into it, but since it is disabled there are no rows).

Click on the edit button for the log to open the settings window: 

 

 log3

Now click 'Enable' and 'Enable Cloud Logging', then save.

 

log4

 

If you click on the refresh button in the overview window, you'll see the icon has changed to show that the log is enabled.

 

log5

 

 

Now if we run this code in the backend

log6

we'll write to the log, which will be reflected in the overview window when we refresh again:

 

log7

 

Now we can click on the log's row, and we can see what we've logged:

log8

 

If we want to set a custom column name this can be accomplished by using WAFLog.ColNameDelimiter in the log string:

log9log10