Files
news.gitea.happylizard.me/bin/gems/yell-2.2.2/examples/003.2-formatting-BasicFormat.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

23 lines
463 B
Ruby

# encoding: utf-8
require_relative '../lib/yell'
puts <<-EOS
# The basic formating string looks like: %l, %d: %m.
logger = Yell.new STDOUT, format: Yell::BasicFormat
logger.info "Hello World!"
#=> "I, 2012-02-29T09:30:00+01:00 : Hello World!"
# ^ ^ ^
# ^ ISO8601 Timestamp Message
# Level (short)
EOS
puts "=== actual example ==="
logger = Yell.new STDOUT, format: Yell::BasicFormat
logger.info "Hello World!"