Class: Tinybucket::NullLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/tinybucket/null_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#levelObject

Returns the value of attribute level.



5
6
7
# File 'lib/tinybucket/null_logger.rb', line 5

def level
  @level
end

Instance Method Details

#debug(_progname = nil, &_block) ⇒ Object



31
# File 'lib/tinybucket/null_logger.rb', line 31

def debug(_progname = nil, &_block); end

#debug?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/tinybucket/null_logger.rb', line 33

def debug?
  false
end

#error(_progname = nil, &_block) ⇒ Object



13
# File 'lib/tinybucket/null_logger.rb', line 13

def error(_progname = nil, &_block); end

#error?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/tinybucket/null_logger.rb', line 15

def error?
  false
end

#fatal(_progname = nil, &_block) ⇒ Object



7
# File 'lib/tinybucket/null_logger.rb', line 7

def fatal(_progname = nil, &_block); end

#fatal?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/tinybucket/null_logger.rb', line 9

def fatal?
  false
end

#info(_progname = nil, &_block) ⇒ Object



25
# File 'lib/tinybucket/null_logger.rb', line 25

def info(_progname = nil, &_block); end

#info?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/tinybucket/null_logger.rb', line 27

def info?
  false
end

#warn(_progname = nil, &_block) ⇒ Object



19
# File 'lib/tinybucket/null_logger.rb', line 19

def warn(_progname = nil, &_block); end

#warn?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/tinybucket/null_logger.rb', line 21

def warn?
  false
end