Add the ability to store debug logs in the file system or in a database
Currently debug logs are stored in ram and are only evicted when a numeric threshold is reached, this means ram is allocated and never released until subsequent requests force the purge.
I have noticed that when Lucee reaches a low memory situation, which this can currently trigger, Lucee tends to lock up and spin CPU. A potential quick fix would be to purge debug logs when a low memory situation is encountered.
how about using Lucee's existing session implementation as the backend for debugging logs?,
it already does in memory, short memory cache and then saving to a datastore