def METHOD_NAME(self, METHOD_NAME, level=LogLevel.Info, bold=False, **metadata):
    if self.test:
        record = TestMessage(METHOD_NAME=METHOD_NAME, level=level,
            test_uid=self.test.uid, suite_uid=self.test.parent_suite.uid)
    else:
        record = LibraryMessage(METHOD_NAME=METHOD_NAME, level=level,
            bold=bold, **metadata)
    self.log(record)