Lines Matching +full:- +full:- +full:debug

18      * constructor for the debug class
21 $this->logger = Logger::getInstance('siteexport');
25 * Debug Level
33 * Available DEBUG Levels:
34 * 5 = off - only socket exceptions will be shown to avoid blank pages
35 * 4 = ERROR - Log errors of the proxy process
36 * 3 = WARN - Log warnings during the proxy process
37 * 2 = INFO - Log information about the ongoing connection process
38 * 1 = DEBUG - detailed log about variable states
39 * 0 = VERBOSE - Additionally logs the reponse body from the server
45 $this->debugLevel = $level;
50 return $this->debugLevel;
54 * Set a valid and writeable filename to have the debug information written into a file
57 * e.g. $CC->debugFile = '/temp/ccproxy.txt';
58 * e.g. $CC->debugFile = 'C:\temp\ccproxy.txt';
67 $this->debugFile = $file;
72 return $this->firstRE;
76 * print debug info to file if exists
80 $ajaxCanLog = $this->isAJAX && $level == 4;
83 if( $this->debugLevel > $level && !$ajaxCanLog ) return; // only log certain Debug Levels
86 case 4: $this->logger->error( $info, $var ); break;
87 case 3: $this->logger->log( $info, $var ); break;
88 case 2: $this->logger->log( $info, $var ); break;
89 case 1: $this->logger->debug( $info, $var ); break;
93 if ( empty($this->debugFile) ) {
94 …$this->runtimeException("DebugFile not properly configured. Make sure, it is set, readable and wri…
95 $this->debugLevel = 5; // shutdown debug
97 $fh = @fopen($this->debugFile, "a+");
99 … $this->runtimeException("Could not create/open/append logfile: '{$this->debugFile}'", true);
100 $this->debugLevel = 5; // shutdown debug
109 case 1: $TYPE = "DEBUG"; break;
113 $prepend = "[" . (date('Y-m-d H:i:s') ?: "") . " $TYPE] ";
156 if ( !$this->isAJAX ) {
163 if ( !$this->isAJAX ) {
164 if ( $this->firstRE ) {
169 if ( $this->firstRE ) {
174 $this->message('Runtime Error: ' . $message, null, 4);
180 $this->firstRE = false;
182 if (!$this->isAJAX) {
183 $this->runtimeErrors .= ob_get_contents();