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, msg : String)

Instance Method Summary collapse

Instance Method Details

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



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

def log sev, t, pref, msg

	;
end

#severity_logged?(severity) ⇒ Boolean

Returns:

  • (Boolean)


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

def severity_logged? severity

	false
end