-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-minilog.php
41 lines (22 loc) · 944 Bytes
/
test-minilog.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
35
36
37
38
39
40
41
<?php
require './app/Minilog.php';
$logger = new \Gbox\Minilog('testing_logs', [
'dir' => '.',
'linenos' => true,
]);
$logger->info('testing', 'string', 'concatenation');
$logger->debug('testing debug messages', true);
$logger->info('testing info messages', true);
$logger->notice('testing notice messages', true);
$logger->warning('testing warning messages', false);
$logger->error('testing error messages', false);
$logger->critical('testing critical messages', false);
$logger->alert('testing alert messages', false);
$logger->emergency('testing emergency messages', false);
$logger->info('testing', 'boolean interpolation', true);
$arr = [true, false, 'test', 1001.123, 0, -132456];
$logger->info('testing', 'array interpolation', $arr);
$logger->info('testing', 'object interpolation', $logger);
$logger->info('testing', 'is', 'complete', true);
echo getcwd();
echo implode(' ', ['afsdjkl', 'sdjfsld', true]);