geniv/nette-activity-logger

Activity logger component for Nette Framework

v1.0.5 2019-02-02 00:20 UTC

This package is auto-updated.

Last update: 2020-09-30 01:47:52 UTC


README

Installation

$ composer require geniv/nette-activity-logger

or

"geniv/nette-activity-logger": ">=1.0.0"

require:

"php": ">=7.0.0",
"nette/nette": ">=2.4.0",
"geniv/nette-general-form": ">=1.0.0"

Include in application

Automatic block url segment _fid.

This segment you can add getBlock() and setBlock(array $block).

neon configure:

services:
#    - ActivityLogger
    - ActivityLogger(%wwwDir%/../log/activity-logger.neon)

presenters:

protected function createComponentActivityLogger(ActivityLogger $activityLogger): ActivityLogger
{
    return $activityLogger;
}

usage:

{control activityLogger}

{* disable render but still logging *}
{control activityLogger, false}