Module: CemWinSpec::Logging::Formatter

Defined in:
lib/cem_win_spec/logging/formatter.rb

Defined Under Namespace

Classes: FileFormatter, GithubActionFormatter, JSONFormatter, TextFormatter

Class Method Summary collapse

Class Method Details

.for(log_format) ⇒ Object



7
8
9
10
# File 'lib/cem_win_spec/logging/formatter.rb', line 7

def for(log_format)
  log_format = log_format.to_s.downcase.to_sym if log_format.respond_to?(:to_s)
  all.find { |f| f.log_format == log_format }.get
end