Class: UnitF::Logging::Writer

Inherits:
Logger
  • Object
show all
Defined in:
lib/unitf/logging/writer.rb

Direct Known Subclasses

ConsoleWriter, FileWriter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, max_files: 3, max_size: 1024000, name: 'none') ⇒ Writer

Returns a new instance of Writer.



9
10
11
12
# File 'lib/unitf/logging/writer.rb', line 9

def initialize(file, max_files: 3, max_size: 1024000, name: 'none')
  super(file, max_files, max_size)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/unitf/logging/writer.rb', line 7

def name
  @name
end