protected static function storeLogRecord ($value, $priority) {
		$content = date('[Y-m-d H-i-s]') . "\n" . $value;
		$content = preg_replace("#\n(\s)#", "\n\t$1", $content) . "\n";
		if (!static::$logDirectoryInitialized) static::initLogDirectory();
		$fullPath = static::$LogDirectory . '/' . $priority . '.log';
		file_put_contents($fullPath, $content, FILE_APPEND);
		return $fullPath;
	}
protected static function storeLogRecord ($value, $priority) {
		$content = date('[Y-m-d H-i-s]') . "\n" . $value;
		$content = preg_replace("#\n(\s)#", "\n\t$1", $content) . "\n";
		if (!static::$logDirectoryInitialized) static::initLogDirectory();
		$fullPath = static::$LogDirectory . '/' . $priority . '.log';
		file_put_contents($fullPath, $content, FILE_APPEND);
		return $fullPath;
	}
protected static function storeLogRecord ( $ value , $ priority ) { $ content = date ( '[Y-m-d H-i-s]' ) . "\n" . $ value ; $ content = preg_replace ( "#\n(\s)#" , "\n\t$1" , $ content ) . "\n" ; if ( ! static :: $ logDirectoryInitialized ) static :: initLogDirectory ( ) ; $ fullPath = static :: $ LogDirectory . '/' . $ priority . '.log' ; file_put_contents ( $ fullPath , $ content , FILE_APPEND ) ; return $ fullPath ; }
Store given log record in text file.
Return full path where the message has been written.
@param mixed $value
@param string $priority
@return string
Store given log record in text file . Return full path where the message has been written .