liaohu / xlogger-php
log runtime info
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/liaohu/xlogger-php
Requires
- php: >5.4
This package is auto-updated.
Last update: 2025-12-17 08:57:37 UTC
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.