Application log
2017-11-25T00:18:03+00:00 INFO (6): Event bootstrap
2017-11-25T00:18:03+00:00 INFO (6): Event configure
2017-11-25T00:18:03+00:00 INFO (6): Configuring application
2017-11-25T00:18:03+00:00 INFO (6): Attaching aggregate listener [object WebinoAppLib\Listener\DebuggerListener]
2017-11-25T00:18:03+00:00 INFO (6): Attaching aggregate listener [object WebinoAppLib\Listener\ContextListener]
2017-11-25T00:18:03+00:00 INFO (6): Event bootstrap
2017-11-25T00:18:03+00:00 INFO (6): Matching context WebinoAppLib\Context\HttpContext
2017-11-25T00:18:03+00:00 INFO (6): Attaching aggregate listener [object WebinoAppLib\Listener\Http\HttpRoutingListener]
2017-11-25T00:18:03+00:00 INFO (6): Attaching aggregate listener [object WebinoAppLib\Listener\Http\HttpRequestListener]
2017-11-25T00:18:03+00:00 INFO (6): Attaching aggregate listener [object WebinoAppLib\Listener\Http\HttpResponseListener]
2017-11-25T00:18:03+00:00 INFO (6): Event WebinoAppLib\Event\ContextEvent
2017-11-25T00:18:03+00:00 WARN (4): Test warning log message!
2017-11-25T00:18:03+00:00 WARN (4): Test warning log message paramOne paramTwo!
2017-11-25T00:18:03+00:00 INFO (6): Attaching [object Closure] to an event WebinoAppLib\Router\DefaultRoute with priority 1
2017-11-25T00:18:03+00:00 INFO (6): Event dispatch
2017-11-25T00:18:03+00:00 INFO (6): Attaching [object Closure] to an event routeMatch with priority 1
2017-11-25T00:18:03+00:00 INFO (6): Event routeMatch
2017-11-25T00:18:03+00:00 INFO (6): Event WebinoAppLib\Router\DefaultRoute
Source Preview
<?php
/**
 * Logger Message Class
 * Webino Example
 */

use WebinoAppLib\Event\RouteEvent;
use 
WebinoAppLib\Response\Content\SourcePreview;
use 
WebinoAppLib\Router\DefaultRoute;
use 
WebinoExamplesLib\Html\FieldSetScrollBox;
use 
WebinoConfigLib\Feature\Log;
use 
WebinoLogLib\Message\AbstractWarningMessage;
use 
Zend\Stdlib\Parameters;

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

/**
 * Custom log message
 */
class MyLogMessage extends AbstractWarningMessage
{
    public function 
getMessage(Parameters $args)
    {
        return 
count($args) ? 'Test warning log message {0} {1}!' 'Test warning log message!';
    }
}

/**
 * Example logs
 */
abstract class MyLogs
{
    const 
APP 'app.log';
}

$config Webino::config([
    
/**
     * Configuring app
     * log file.
     */
    
new Log(MyLogs::APP),
]);

$app Webino::application($config)->bootstrap();

/**
 * Writing log
 * message.
 */
$app->log(MyLogMessage::class);

/**
 * Writing log message
 * with arguments.
 */
$app->log(MyLogMessage::class, ['paramOne''paramTwo']);

$app->bind(DefaultRoute::class, function (RouteEvent $event) {
    
/**
     * Obtaining log
     * file contents.
     */
    
$log $event->getApp()->file()->read(MyLogs::APP);

    
$event->setResponse([
        new 
FieldSetScrollBox('Application log'$log),
        new 
SourcePreview(__FILE__),
    ]);
});

$app->dispatch();