-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
34 lines (32 loc) · 1.23 KB
/
config.sample.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
31
32
33
34
<?php
// +----------------------------------------------------------------------
// | [phpslow-reader]
// +----------------------------------------------------------------------
// | Author: Mr.5 <[email protected]>
// +----------------------------------------------------------------------
// + Datetime: 14-9-22 15:15
// +----------------------------------------------------------------------
// + config.sample.php
// +----------------------------------------------------------------------
// This var is just for filed reusing.
$_log_file = '/tmp/php-slow.log';
$config =
array(
'servers' => array(
'localhost' => array(
// In this server, 'host' field is unset, so it can be recognized as 'localhost'.
'file' => '/var/log/php/php-slow.log'
),
'Server1' => array(
'host' => '192.168.2.38',
'file' => $_log_file,
// mark code_server as 'localhost' means that direct read php codes locally .
'code_server' => 'localhost'
),
'ServerB' => array(
'host' => '192.168.2.39',
'file' => $_log_file
)
),
'linesLimit' => 1000,
);