PHP Classes

File: examples/mail_example.php

Recommend this page to a friend!
  Classes of Kiril Savchev   ITE Logger   examples/mail_example.php   Download  
File: examples/mail_example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: ITE Logger
Log messages to different storage PSR-3 compliant
Author: By
Last change:
Date: 7 years ago
Size: 297 bytes
 

Contents

Class file image Download
<?php

require_once '../vendor/autoload.php';

use
Ite\Logger\PhpMailLogger;

// Change the email addres to yours:
$logger = new PhpMailLogger('me@xample.com');

// Log simple info message with fake content:
$logger->info("Test info",['a' => 'test context', 'qwe' => 'alabala', 'q' => [1, 2, 4]]);