@staticmethod
def format(lid, msg, efile=None, eline=None):
    """Format a log message"""
    rval = '%3d:' % lid
    if efile is not None:
        rval += '%s:' % efile
    if eline is not None:
        rval += '%s:' % eline
    rval += '%s' % msg
    return rval
