On Thu, Jan 21, 2021 at 04:21:59PM +0800, Yu Chuan wrote:
- 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|
good!
Thanks, Shenwei
Thanks Yu Chuan
"#{datetime}-#{severity}: #{msg}\n"
- end
- end
+end
2.23.0