sanity/sanity.rb in soar_auditing_provider-0.6.0 vs sanity/sanity.rb in soar_auditing_provider-0.7.0
- old
+ new
@@ -1,24 +1,14 @@
require 'log4r'
require 'soar_auditing_provider'
-class Log4rAuditingProvider < SoarAuditingProvider::AuditingProviderAPI
- def configure_auditor(auditor, configuration = nil)
- auditor.outputters = configuration['outputter']
- end
-
- def select(nfrs)
- super(nfrs)
- end
-end
-
class Main
include Log4r
def test_sanity
auditor = Logger.new 'sanity'
- auditor_configuration = { 'outputter' => Outputter.stdout }
- @iut = Log4rAuditingProvider.new( { auditor => auditor_configuration } )
+ auditor.outputters = Outputter.stdout
+ @iut = SoarAuditingProvider::AuditingProviderAPI.new( { auditor => { 'nfrs' => {'accessibility' => 'local'} } } )
@iut.select(SoarAuditingProvider::AuditingProviderAPI::DEFAULT)
some_debug_object = 123
@iut.info("This is info")
@iut.debug(some_debug_object)
dropped = 95