25 sys.path.insert(1,
"../")
28 from SystemLogger
import *
46 OpenRTM_aist.Manager.instance().shutdownManager()
50 self.
logger = Logger.init(
"test",
"FILE",
"test.log")
51 self.assertEqual(self.logger.strToLogLevel(
"SILENT"), Logger.SILENT)
52 self.assertEqual(self.logger.strToLogLevel(
"ERROR"), Logger.ERROR)
53 self.assertEqual(self.logger.strToLogLevel(
"WARN"), Logger.WARN)
54 self.assertEqual(self.logger.strToLogLevel(
"INFO"), Logger.INFO)
55 self.assertEqual(self.logger.strToLogLevel(
"DEBUG"), Logger.DEBUG)
56 self.assertEqual(self.logger.strToLogLevel(
"TRACE"), Logger.TRACE)
57 self.assertEqual(self.logger.strToLogLevel(
"VERBOSE"), Logger.VERBOSE)
58 self.assertEqual(self.logger.strToLogLevel(
"PARANOID"), Logger.PARANOID)
59 self.assertEqual(self.logger.strToLogLevel(
"HOGE"), Logger.INFO)
64 self.logstr.setLogLevel(
"INFO")
65 self.logstr.RTC_INFO(
"addHandler test!!!!!")
69 self.logstr.setLogLock(
True)
70 self.logstr.setLogLock(
False)
73 self.logstr.enableLogLock()
76 self.logstr.disableLogLock()
84 self.logstr.RTC_LOG(logging.ERROR,
"log %s, %s",(
"hoge",
"hogehoge"))
88 self.logstr.RTC_ERROR(
"error!!!!!")
94 self.logstr.RTC_ERROR(sys.exc_info())
98 self.logstr.RTC_WARN(
"warn!!!!!")
102 self.logstr.RTC_INFO(
"info!!!!!")
106 self.logstr.RTC_DEBUG(
"debug!!!!!")
110 self.logstr.RTC_TRACE(
"trace!!!!")
113 self.logstr.RTC_VERBOSE(
"verbose!!!!")
116 self.logstr.RTC_PARANOID(
"paranoid!!!!")
119 if __name__ ==
"__main__":
def test_RTC_VERBOSE(self)
def test_strToLogLevel(self)
def test_setLogLock(self)
def test_RTC_PARANOID(self)
def test_acquire_release(self)
def test_disableLogLock(self)
def test_enableLogLock(self)
def test_addHandler(self)