PHP Classes

File: MyLogger.php

Recommend this page to a friend!
  Packages of Stefan Kientzler   PHP Web Push Notifications Server   MyLogger.php   Download  
File: MyLogger.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Push Notifications Server
Queue and push notifications to Web users
Author: By
Last change:
Date: 6 years ago
Size: 201 bytes
 

Contents

Class file image Download
<?php
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;

function createLogger() : LoggerInterface
{
    // just create and configure any PSR-3 logger of your choice 
    return new NullLogger();
}