Sha256: f033273fd42c45c66205418a9635eed71a64280a23bbd57e2e93ad3b506a91e5
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
require 'logger' module UnitF module Logging class Writer < ::Logger attr_reader :name def initialize(file, max_files: 3, max_size: 1024000, name: 'none') super(file, max_files, max_size) @name = name end end end end module UnitF module Logging class ConsoleWriter < UnitF::Logging::Writer def initialize(name: 'console') super($stdout, name: name) end end end end module UnitF module Logging class FileWriter < UnitF::Logging::Writer def initialize(file, max_files: 3, max_size: 1024000, name: 'none') super(file, max_files: max_files, max_size: max_size, name: name) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unitf-logging-0.1.2 | lib/unitf/logging/writer.rb |
unitf-logging-0.1.1 | lib/unitf/logging/writer.rb |
unitf-logging-0.1.0 | lib/unitf/logging/writer.rb |