public function log() {
		$this->empty = true;
		$log = array ();
		
		$pattern = "/\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\].*/";
		
		$log_levels = $this->getLevels ();
		
		//$log_file = glob ( $this->path . '/log-' . $this->sapi . '*-' . $this->fileName . '.txt' );
		$log_file = $this->path.'/'.$this->fileName;
		
		if (! empty ( $log_file ) && File::exists ( $log_file ) ) {
			$this->empty = false;
			$file = File::get ( $log_file );

			// There has GOT to be a better way of doing this...
			preg_match_all ( $pattern, $file, $headings );
			$log_data = preg_split ( $pattern, $file );

			if ($log_data [0] < 1) {
				$trash = array_shift ( $log_data );
				unset ( $trash );
			}
			
			
			foreach ( $headings as $h ) {
				for($i = 0, $j = count ( $h ); $i < $j; $i ++) {
					foreach ( $log_levels as $ll ) {
						if ($this->level == $ll or $this->level == 'all') {
							if (strpos ( strtolower ( $h [$i] ), strtolower ( 'production.' . $ll ) )) {
								$log [] = array (
										'level' => $ll,
										'header' => $h [$i],
										'stack' => $log_data [$i] 
								);
							}
						}
					}
				}
			}
		}
		
		unset ( $headings );
		unset ( $log_data );
		
		if (strtolower ( Config::get ( 'logviewer::log_order' ) ) == "desc") {
			$log = array_reverse ( $log );
		}
		
		return $log;
	}