Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rubyロガーをどのようにフォーマットしますか?
logger = Logger.new('nice.log') logger.formatter = proc do |severity, datetime, progname, msg| "NICE: #{msg}\n" end logger.info("I like cheese.") # nice.log: NICE: I like cheese.