log.rb 209 B

123456789101112
  1. # log function, with formatting support and auto newline.
  2. def log(fmt, *args)
  3. if fmt && !(args.empty?)
  4. woe_log(fmt.format(*args))
  5. else
  6. woe_log(fmt.to_s)
  7. end
  8. end
  9. log("log.rb script loaded")