lib/sample.rb in RTALogger-1.1.1 vs lib/sample.rb in RTALogger-2.0.0
- old
+ new
@@ -26,9 +26,10 @@
test_topic = log_manager.add_topic('test')
# test_topic.severity_level = ::RTALogger::SeverityLevel::FATAL
# test_topic.enable = false
# add log information to log topic
+topic.trace(userID, 'Controller Name=', controller_name, 'trace')
topic.debug(userID, 'Controller Name=', controller_name, 'debug')
topic.info(userID, 'Controller Name=', controller_name, 'information')
topic.warning(userID, 'Controller Name=', controller_name, 'warning')
topic.error(userID, 'Controller Name=', controller_name, 'error')
topic.fatal(userID, 'Controller Name=', controller_name, 'fatal')