While I have learned so much, I feel I know so little. Here’s what I want to do that I cannot seem to.
When I think of how I want logbox to work, I think of what I want to log. A database error goes here, a code bug goes there, a notification of some activity goes over there…regardless of whether the message is info, debug, error, etc. For example, in some process where the user changes a field of data for a profile account…I might want to:
- if “debugging” of some sort is turned on, I want to log the fact that the user has accessed the save feature for a profile account to a log file
- if the user is not logged in when the request hits the save process (say something timed out), I want to log a piece of information that there was some invalid access made to the save process
- if the save is unsuccessful because a non-validated piece of data failed to be saved by the database, I want to log the database error to a table in the database
- if the save was successful, I want to log information about what changed to a different table in the database
- if the save was successful and “debugging” of some sort is turned on, I want to log the fact that the change was successful and the user exited the save process to a the same log file as #1 above.
Most of those are probably “info”, some might be “debug” and one might be “error”…but that are all logging to different places and NOT duplicated across multiple locations.
What mechanism in logbox best accomplishes this.
Thanks,
Mike