Blame view

src/vendor/1.2.5/Phalcon/Logger/Adapter/File.php 1.23 KB
1ea3b987   Administrator   maby first commit
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\Adapter {
  
  	/**
  	 * Phalcon\Logger\Adapter\File
  	 *
  	 * Adapter to store logs in plain text files
  	 *
  	 *<code>
  	 *	$logger = new \Phalcon\Logger\Adapter\File("app/logs/test.log");
  	 *	$logger->log("This is a message");
  	 *	$logger->log("This is an error", \Phalcon\Logger::ERROR);
  	 *	$logger->error("This is another error");
  	 *	$logger->close();
  	 *</code>
  	 */
  	
  	class File extends \Phalcon\Logger\Adapter implements \Phalcon\Logger\AdapterInterface {
  
  		protected $_fileHandler;
  
  		protected $_path;
  
  		protected $_options;
  
  		/**
  		 * \Phalcon\Logger\Adapter\File constructor
  		 *
  		 * @param string $name
  		 * @param array $options
  		 */
  		public function __construct($name, $options=null){ }
  
  
  		/**
  		 * Returns the internal formatter
  		 *
  		 * @return \Phalcon\Logger\Formatter\Line
  		 */
  		public function getFormatter(){ }
  
  
  		/**
  		 * Writes the log to the file itself
  		 *
  		 * @param string $message
  		 * @param int $type
  		 * @param int $time
  		 */
  		public function logInternal($message, $type, $time){ }
  
  
  		/**
  		 * Closes the logger
  		 *
  		 * @return boolean
  		 */
  		public function close(){ }
  
  
  		/**
  		 * Opens the internal file handler after unserialization
  		 *
  		 */
  		public function __wakeup(){ }
  
  	}
  }