class MachineLearningWorkbench::Tools::Logging::LogSplitter
Splits calls to standard streams to be both displayed on terminal and saved to file
Public Class Methods
new(dest)
click to toggle source
Calls superclass method
# File lib/machine_learning_workbench/tools/logging.rb, line 7 def initialize dest fname = if File.directory?(dest) "#{dest}/#{Time.now.strftime "%y%m%d_%H%M"}.log" else dest end super fname, 'w' end
Public Instance Methods
write(*args)
click to toggle source
Calls superclass method
# File lib/machine_learning_workbench/tools/logging.rb, line 15 def write *args STDOUT.write *args super end