Skip to content

grenhaz/yii2-userlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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