An application I'm working on requires logging of actions, user who performs the action, and time of action to a database.
Which design pattern is most popular/appropriate for logging?
I'm thinking of Command pattern that require the current user and an action. Perform the action and write to the log.
What do you think? Any other alternatives I can consider?
Thank you.