Expands the logging functionality that is exposed to the app.

Makes the logger logs the message to the database when the log method is used.