Logger.php
726 Bytes
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
<?php 
namespace Phalcon {
	/**
	 * Phalcon\Logger
	 *
	 * Phalcon\Logger is a component whose purpose is create logs using
	 * different backends via adapters, generating options, formats and filters
	 * also implementing transactions.
	 *
	 *<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");
	 *</code>
	 */
	
	abstract class Logger {
		const SPECIAL = 9;
		const CUSTOM = 8;
		const DEBUG = 7;
		const INFO = 6;
		const NOTICE = 5;
		const WARNING = 4;
		const ERROR = 3;
		const ALERT = 2;
		const CRITICAL = 1;
		const EMERGENCE = 0;
	}
}