Total Complexity | 8 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class ToSyslog extends ToStd implements Loggingable |
||
18 | { |
||
19 | /** |
||
20 | * Předvolená metoda logování. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | public $logType = 'syslog'; |
||
25 | |||
26 | /** |
||
27 | * Saves obejct instace (singleton...). |
||
28 | */ |
||
29 | private static $instance = null; |
||
30 | |||
31 | /** |
||
32 | * Logovací třída. |
||
33 | * |
||
34 | * @param string $logName syslog log source identifier |
||
35 | */ |
||
36 | public function __construct($logName = null) |
||
40 | } |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Obtain instance of Syslog loger |
||
45 | * |
||
46 | * @return ToSyslog |
||
47 | */ |
||
48 | public static function singleton() |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * Output logline to syslog/messages by its type |
||
58 | * |
||
59 | * @param string $type message type 'error' or anything else |
||
60 | * @param string $logLine message to output |
||
61 | */ |
||
62 | public function output($type, $logLine) |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * Uzavře chybové soubory. |
||
69 | * |
||
70 | * @return boolean syslog close status |
||
71 | */ |
||
72 | public function __destruct() |
||
77 |