first we use sql statements to write to the log table and as mentioned the log is configured at runtime. debug messages are ignored if system is not set to log them.