- self.formatter = proc do |severity, datetime, _, msg|
Does _ mean a meaningless var? If so, you can refer the follow to make it more code-friendly? log_formatter = proc do |severity, datetime, _progname, msg|
-------- Thanks Yu Chuan
"#{datetime}-#{severity}: #{msg}\n"
- end
- end
+end
2.23.0