/
[system log] Improvements to "kApplication::log" method
[system log] Improvements to "kApplication::log" method
The $this->Application->log
method can be used to log various types of information to SystemLog
table for later analysis. That method returns the kLogger
class instance, which has methods fo:
- logging handling (adding new records, deleting existing record)
- adding data to currently processed record (exception trace, request variables, etc)
As a result the IDE auto-complete on log record is kind of messy, since it allows you to do what isn't really affecting the log record that is about to be created.
I'm proposing to:
- Extract the properties/methods responsible for single log record processing into new
kLogRecord
class and return it's instance. This way allkLogger
class helper methods won't stand in a way. - move out 4 class declarations into separate folders.