Swiftmailer is cool. It’s a really useful PHP library to make sending email messages really simple. The problem is that it lacks documentation, or the documentation is out there some where, but I can’t find it.
One issue that I kept running into was, what’s the structure of the $record hash that the handler’s write() method uses?
Here it is.
Array ( [message] => [rqswqiurqzz8fzziu8f] Request took 1 seconds [context] => Array ( ) [level] => 200 [level_name] => INFO [channel] => blurp-service [datetime] => DateTime Object ( [date] => 2016-03-31 15:17:38.505357 [timezone_type] => 3 [timezone] => America/New_York ) [extra] => Array ( ) [formatted] => [2016-03-31 15:17:38] blurp-service.INFO: [rqswqiurqzz8fzziu8f] Request took 1 seconds )