Object
Default formatter for log messages.
# File ruby-3.1.2/ext/syslog/lib/syslog/logger.rb, line 51 def call severity, time, progname, msg clean msg end
Clean up messages so they're nice and pretty.
# File ruby-3.1.2/ext/syslog/lib/syslog/logger.rb, line 60 def clean message message = message.to_s.strip message.gsub!(/\e\[[0-9;]*m/, '') # remove useless ansi color codes return message end
This page was generated for Ruby 3.1.2
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.42.0.