Class: TopTL::Autoposter::StderrLogger
- Inherits:
-
Object
- Object
- TopTL::Autoposter::StderrLogger
- Defined in:
- lib/toptl/autoposter.rb
Overview
Minimal stderr logger so we don’t require ‘logger` (which was bundled with Ruby < 4.0 and is a separate gem afterwards).
Instance Method Summary collapse
Instance Method Details
#error(msg) ⇒ Object
173 174 175 |
# File 'lib/toptl/autoposter.rb', line 173 def error(msg) $stderr.puts("[toptl.autoposter] ERROR #{msg}") end |
#info(msg) ⇒ Object
177 178 179 |
# File 'lib/toptl/autoposter.rb', line 177 def info(msg) $stderr.puts("[toptl.autoposter] INFO #{msg}") end |
#warn(msg) ⇒ Object
169 170 171 |
# File 'lib/toptl/autoposter.rb', line 169 def warn(msg) $stderr.puts("[toptl.autoposter] WARN #{msg}") end |