liaohu/xlogger-php
Composer 安装命令:
composer require liaohu/xlogger-php
包简介
log runtime info
README 文档
README
The xloger-php library provides and API for communicating with Xloger
Requirement
This is a client side library for Xloger, make sure you had installed and started the server side app.
This API required sockets module for high-performence communication. make sure you had installed this moudule and enabled in php.ini.
Linux:
extension=sockets.so
Windows:
extension=sockets.dll
Install xloger for php
copy xloger.php to your work dir, require "xloger.php" in your index.php
require "[path to xloger]/xloger.php";
config the host as XLogerServer doesn't running at this server.
// the xloger server address, default to 127.0.0.1 define("XLOGER_SERVER_HOST", "192.168.1.2"); require "[path to xloger]/xloger.php";
Usage
use \XLoger; $params = array_merge($_GET, $_POST); $user = User::db()->get_by_id($params['uid']); // var_dump($params); // forget that, out put this will destroy your data structure like html, json. XLoger::log($params, $user);
Locate your browser to http://localhost:9527 for realtime watching your logs.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-06-17