I see that there is an open issune on Github regarding missing configuration documentation for factories.
Can I have and example of how to configure the Zend Log Writer Mail factory to be used with SMTP and Gmail?
Here is my config file using only the stream writer now.
'psr_log' => [ // <-- NOTE: key change! it's not 'log'
'default' => [
'writers' => [
'stream' => [
'name' => 'stream',
'priority' => 1,
'options' => [
'stream' => 'data/log/application.log',
'formatter' => [
'name' => Simple::class,
'options' => [
'format' => '%timestamp% %priorityName% (%priority%): %message% %extra%',
'dateTimeFormat' => 'c',
],
],
'filters' => [
'priority' => [
'name' => 'priority',
'options' => [
'operator' => '<=',
'priority' => Logger::INFO,
],
],
],
],
],
],
'processors' => [
'requestid' => [
'name' => RequestId::class,
],
],
],
How do I configure Mail log writer here? (assuming I don’t wan’t to instantitate objects right away).