module F2yAwsTool
Constants
- VERSION
Public Instance Methods
log(level)
click to toggle source
# File lib/f2y_aws_tool.rb, line 17 def log(level) @log = Logger.new 'F2Y-AWS-TOOL' @log.level = Log4r.const_get(level) @log.add(Log4r::StdoutOutputter.new("F2Y-AWS-TOOL-STDOUT", {formatter: log_format})) @log end
log_format()
click to toggle source
# File lib/f2y_aws_tool.rb, line 24 def log_format @log_format ||= Log4r::PatternFormatter.new(:pattern => "F2Y-AWS-TOOL::%l %d :: %m", :date_pattern => "%a %d %b %H:%M %p %Y") end