test/service_test.rb in ruby_skynet-0.6.0 vs test/service_test.rb in ruby_skynet-0.7.0
- old
+ new
@@ -5,13 +5,11 @@
require 'test/unit'
require 'shoulda'
require 'ruby_skynet'
# Register an appender if one is not already registered
-if SemanticLogger::Logger.appenders.size == 0
- SemanticLogger::Logger.default_level = :trace
- SemanticLogger::Logger.appenders << SemanticLogger::Appender::File.new('test.log')
-end
+SemanticLogger.default_level = :trace
+SemanticLogger.add_appender('test.log') if SemanticLogger.appenders.size == 0
class TestService
include RubySkynet::Service
# Methods implemented by this service
\ No newline at end of file