Skip to content

idollo/xloger-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 

Repository files navigation

xloger-php

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.

About

A php client for xloger.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages