'Write the given ``msg`` to the error log.
This is not just for errors! Applications may call this at any time
to log application-specific information.
If ``traceback`` is True, the traceback of the current exception
(if any) will be appended to ``msg``.'

def error(self, msg='', context='', severity=logging.INFO, traceback=False):

    if traceback:
        msg += _cperror.format_exc()
    self.error_log.log(severity, '    '.join((self.time(), context, msg)))
