Class: Pantheios::Services::NullLogService

Inherits:
Object
  • Object
show all
Defined in:
lib/pantheios/services/null_log_service.rb

Overview

A class that fulfils the Pantheios LogService protocol that disallows all severities and does nothing when asked to log

NOTE: The LogService protocol is implemented by a class that provides the instance methods severity_logged?(severity : Object) : boolean and log(severity : Object, t : Time, prefix : String|Array, msg : String)

Instance Method Summary collapse

Instance Method Details

#log(sev, t, pref, msg) ⇒ Object



68
69
70
71
# File 'lib/pantheios/services/null_log_service.rb', line 68

def log sev, t, pref, msg

	;
end

#severity_logged?(severity) ⇒ Boolean

Returns:

  • (Boolean)


63
64
65
66
# File 'lib/pantheios/services/null_log_service.rb', line 63

def severity_logged? severity

	false
end