1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Diagnostics;
9:
10: use Tracy;
11:
12:
13: /**
14: * @deprecated
15: */
16: class Debugger extends Tracy\Debugger
17: {
18: /** @deprecated */
19: public static $consoleMode;
20:
21: /** @deprecated */
22: public static $consoleColors;
23:
24: /** @deprecated @var BlueScreen*/
25: public static $blueScreen;
26:
27: /** @deprecated @var Logger */
28: public static $logger;
29:
30: /** @deprecated @var FireLogger */
31: public static $fireLogger;
32:
33: /** @deprecated @var Bar */
34: public static $bar;
35:
36:
37: /**
38: * Enables displaying or logging errors and exceptions.
39: * @param mixed production, development mode, autodetection or IP address(es) whitelist.
40: * @param string error log directory; enables logging in production mode, FALSE means that logging is disabled
41: * @param string administrator email; enables email sending in production mode
42: * @return void
43: */
44: public static function enable($mode = NULL, $logDirectory = NULL, $email = NULL)
45: {
46: parent::enable($mode, $logDirectory, $email);
47: self::$blueScreen = self::getBlueScreen();
48: self::$bar = self::getBar();
49: self::$logger = self::getLogger();
50: self::$fireLogger = self::getFireLogger();
51: self::$consoleColors = & Tracy\Dumper::$terminalColors;
52: }
53:
54:
55: public static function addPanel(IBarPanel $panel, $id = NULL)
56: {
57: return self::getBar()->addPanel($panel, $id);
58: }
59:
60: }
61: