Line.php
1.14 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
namespace Phalcon\Logger\Formatter {
/**
* Phalcon\Logger\Formatter\Line
*
* Formats messages using an one-line string
*/
class Line extends \Phalcon\Logger\Formatter implements \Phalcon\Logger\FormatterInterface {
protected $_dateFormat;
protected $_format;
/**
* \Phalcon\Logger\Formatter\Line construct
*
* @param string $format
* @param string $dateFormat
*/
public function __construct($format=null, $dateFormat=null){ }
/**
* Set the log format
*
* @param string $format
*/
public function setFormat($format){ }
/**
* Returns the log format
*
* @return format
*/
public function getFormat(){ }
/**
* Sets the internal date format
*
* @param string $date
*/
public function setDateFormat($date){ }
/**
* Returns the internal date format
*
* @return string
*/
public function getDateFormat(){ }
/**
* Applies a format to a message before sent it to the internal log
*
* @param string $message
* @param int $type
* @param int $timestamp
* @return string
*/
public function format($message, $type, $timestamp){ }
}
}