Method: Wsl::CustomLogger#initialize

Defined in:
lib/utils/Logger.rb

#initialize(logFile) ⇒ CustomLogger

Constructor logs to file as well as screen if specified.

logFile: path to log file.



46
47
48
49
50
51
52
53
54
55
# File 'lib/utils/Logger.rb', line 46

def initialize(logFile)			
	# Initialise instance counters.
	@step = 1
	@passedTests = 0
	@failedTests = 0
	@logFile = logFile
	
	# Create the log dir and cache dir structure.
	createDirs()
end