PHP Classes

File: demo/web/index.php

Recommend this page to a friend!
  Classes of Slawomir Kaleta   PHP PSR 3 Logger for Activities   demo/web/index.php   Download  
File: demo/web/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP PSR 3 Logger for Activities
Log activities compliant with PSR 3
Author: By
Last change: Update of demo/web/index.php
Date: 2 years ago
Size: 435 bytes
 

Contents

Class file image Download
<?php

/**
 * DframeFramework
 * Copyright (C) S?awomir Kaleta
 *
 * @license https://github.com/dusta/Dframe/blob/master/LICENCE
 */

use Dframe\ActivityLog\Activity;
use
Dframe\ActivityLog\Demo\Drivers\FileLog;

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

$log = (new Activity(new FileLog()));
$log->log('Hello Word!')->entity(\Dframe\ActivityLog\Demo\Entity\Action::class)->push();

echo
'<pre>';
var_dump($log->logs());