-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlog.php
30 lines (21 loc) · 1.03 KB
/
log.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once 'LIB_Log.php';
//生成一个session
$logSrv = new LIB_Log();
$logSrv->debug = TRUE;
echo "\n\n\n-------------------test write notice start-----------------------\n";
$logSrv->addlog('key', 'value');
$logSrv->write();
echo "-------------------test write notice end-----------------------\n\n\n";
echo "\n\n\n-------------------test write notice write app start-----------------------\n";
$logSrv->addlog('key', 'value');
$logSrv->write('app');
echo "-------------------test write notice write app end-----------------------\n\n\n";
echo "\n\n\n-------------------test write rpc start-----------------------\n";
$logSrv->rpcstart();
$logSrv->writerpc(array('rpc_params' => 'rpc_value'));
echo "-------------------test write rpc end-----------------------\n\n\n";
echo "\n\n\n-------------------test write warning start-----------------------\n";
$logSrv->rpcstart();
$logSrv->writewarning(array('warning_params' => 'warning_value'));
echo "-------------------test write warning end-----------------------\n\n\n";