PHP code example of xiaoyukarl / xlog

1. Go to this page and download the library: Download xiaoyukarl/xlog library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xiaoyukarl / xlog example snippets


    'storagePath' => __DIR__.'/../logs/',//日志保存目录, 请修改为你的项目日志保存目录
    'viewsPath' => __DIR__.'/../resources/views/',//模板目录, 如需修改请将文件夹复制到你的项目模板目录
    'staticPath' => '/resources/static/',//静态文件目录, 必须修改,否则无法读取
    
    /* -----------------------------------------------------------------
    |  为了适配不同的框架,需要重新定义下面几个url
    | -----------------------------------------------------------------
    */
    'dashboardUrl' => 'http://xlog.test/test/dashboard.php/',//仪表台url
    'logListUrl' => 'http://xlog.test/test/logs.php/',//日志文件列表url
    'showUrl' => 'http://xlog.test/test/show.php/',//详情url
    'downloadUrl' => 'http://xlog.test/test/download.php/',//下载url
    'deleteUrl' => 'http://xlog.test/test/delete.php/',//删除url