pythagor/yii2-mongolog
Composer 安装命令:
composer require pythagor/yii2-mongolog
包简介
Yii2 Module for Web Application user's activity log at MongoDB
README 文档
README
The yii2-mongolog is a Yii2 module for store web application user's activity log in the MongoDB.
Installation
The preferred way to install this extension is through composer.
Configuration
- Add mongolog module into modules section of your config.
- Set your MongoDB collection name for store log data.
- Set correct dsn string to connect with right MongoDB instance and database.
- Add mongolog module into bootstrap section of your config.
Example
'modules' => [ // ... 'mongolog' => [ 'class' => 'pythagor\mongolog\Module', 'logCollection' => 'YourCollectionName', 'components' => [ 'db_log' => [ 'class' => 'yii\mongodb\Connection', 'dsn' => 'mongodb://localhost:27017/YourDatabaseName', ], ], ], ], 'bootstrap' => [ // ... 'mongolog', ],
License
yii2-mongolog is released under the MIT License.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-22