Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 626 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 626 Bytes

User logging Extension for Yii 2

For license information check the LICENSE-file.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist grenhaz/yii2-userlog

or add

"grenhaz/yii2-userlog": "~1.0.0"

to the require section of your composer.json.

Basic Usage

'log' => [
	'targets' => [
		[
			'class' => 'grenhaz/userlog/UserLogger',
			'name' => 'user_basic',
		],
	],
],

Log file location:

runtime/logs/{user_id}/{name}.log