Download the PHP package rppet/dds_centralized_log without Composer
On this page you can find all versions of the php package rppet/dds_centralized_log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rppet/dds_centralized_log
More information about rppet/dds_centralized_log
Files in rppet/dds_centralized_log
Download rppet/dds_centralized_log
More information about rppet/dds_centralized_log
Files in rppet/dds_centralized_log
Vendor rppet
Package dds_centralized_log
Short Description Centralized access log processing analysis
License
Package dds_centralized_log
Short Description Centralized access log processing analysis
License
Please rate this library. Is it a good library?
Informations about the package dds_centralized_log
centralized_log
Laravel Centralized access log
安装
"dds_centralized_log": {
"type": "git",
"url": "https://github.com/rppet/dds_centralized_log.git"
}
composer require rppet/dds_centralized_log:dev-master
示例代码
$logServer = new Log();
// 获取分表表名前缀
$subTablePrefix = config('centralized_log.table_name');
// logModel
$logModel = new LogModel($subTablePrefix, config('centralized_log.type'));
// 获取完整的表名
$tableName = $logModel->getTable();
// 如果分表不存在则新建表
if (!$logServer->checkTableIsExists($tableName)){
$logServer->createTable($tableName);
}
//添加日志记录
$logResult = $logServer->addLog($tableName, $data);
发布配置文件
php artisan vendor:publish --provider="Hanuas\CentralizedLog\ServiceProvider"
All versions of dds_centralized_log with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package rppet/dds_centralized_log contains the following files
Loading the files please wait ....