original_string: public static function deprecationLog($msg) {
  		if (!$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog']) {
  			return;
  		}
  
  		$log = $GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'];
  		$date = date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'] . ': ');
  
  			// legacy values (no strict comparison, $log can be boolean, string or int)
  		if ($log === TRUE || $log == '1') {
  			$log = 'file';
  		}
  
  		if (stripos($log, 'file') !== FALSE) {
  				// In case lock is acquired before autoloader was defined:
  			if (class_exists('t3lib_lock') === FALSE) {
  				require_once PATH_t3lib . 'class.t3lib_lock.php';
  			}
  				// write a longer message to the deprecation log
  			$destination = self::getDeprecationLogFileName();
  			$lockObject = t3lib_div::makeInstance('t3lib_lock', $destination, $GLOBALS['TYPO3_CONF_VARS']['SYS']['lockingMode']);
  			/** @var t3lib_lock $lockObject */
  			$lockObject->setEnableLogging(FALSE);
  			$lockObject->acquire();
  			$file = @fopen($destination, 'a');
  			if ($file) {
  				@fwrite($file, $date . $msg . LF);
  				@fclose($file);
  				self::fixPermissions($destination);
  			}
  			$lockObject->release();
  		}
  
  		if (stripos($log, 'devlog') !== FALSE) {
  				// copy message also to the developer log
  			self::devLog($msg, 'Core', self::SYSLOG_SEVERITY_WARNING);
  		}
  
  			// do not use console in login screen
  		if (stripos($log, 'console') !== FALSE && isset($GLOBALS['BE_USER']->user['uid'])) {
  			t3lib_utility_Debug::debug($msg, $date, 'Deprecation Log');
  		}
  	}
code: public static function deprecationLog($msg) {
  		if (!$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog']) {
  			return;
  		}
  
  		$log = $GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'];
  		$date = date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'] . ': ');
  
  			// legacy values (no strict comparison, $log can be boolean, string or int)
  		if ($log === TRUE || $log == '1') {
  			$log = 'file';
  		}
  
  		if (stripos($log, 'file') !== FALSE) {
  				// In case lock is acquired before autoloader was defined:
  			if (class_exists('t3lib_lock') === FALSE) {
  				require_once PATH_t3lib . 'class.t3lib_lock.php';
  			}
  				// write a longer message to the deprecation log
  			$destination = self::getDeprecationLogFileName();
  			$lockObject = t3lib_div::makeInstance('t3lib_lock', $destination, $GLOBALS['TYPO3_CONF_VARS']['SYS']['lockingMode']);
  			/** @var t3lib_lock $lockObject */
  			$lockObject->setEnableLogging(FALSE);
  			$lockObject->acquire();
  			$file = @fopen($destination, 'a');
  			if ($file) {
  				@fwrite($file, $date . $msg . LF);
  				@fclose($file);
  				self::fixPermissions($destination);
  			}
  			$lockObject->release();
  		}
  
  		if (stripos($log, 'devlog') !== FALSE) {
  				// copy message also to the developer log
  			self::devLog($msg, 'Core', self::SYSLOG_SEVERITY_WARNING);
  		}
  
  			// do not use console in login screen
  		if (stripos($log, 'console') !== FALSE && isset($GLOBALS['BE_USER']->user['uid'])) {
  			t3lib_utility_Debug::debug($msg, $date, 'Deprecation Log');
  		}
  	}
code_tokens: public static function deprecationLog ( $ msg ) { if ( ! $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'enableDeprecationLog' ] ) { return ; } $ log = $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'enableDeprecationLog' ] ; $ date = date ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'ddmmyy' ] . ' ' . $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'hhmm' ] . ': ' ) ; // legacy values (no strict comparison, $log can be boolean, string or int) if ( $ log === TRUE || $ log == '1' ) { $ log = 'file' ; } if ( stripos ( $ log , 'file' ) !== FALSE ) { // In case lock is acquired before autoloader was defined: if ( class_exists ( 't3lib_lock' ) === FALSE ) { require_once PATH_t3lib . 'class.t3lib_lock.php' ; } // write a longer message to the deprecation log $ destination = self :: getDeprecationLogFileName ( ) ; $ lockObject = t3lib_div :: makeInstance ( 't3lib_lock' , $ destination , $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'lockingMode' ] ) ; /** @var t3lib_lock $lockObject */ $ lockObject -> setEnableLogging ( FALSE ) ; $ lockObject -> acquire ( ) ; $ file = @ fopen ( $ destination , 'a' ) ; if ( $ file ) { @ fwrite ( $ file , $ date . $ msg . LF ) ; @ fclose ( $ file ) ; self :: fixPermissions ( $ destination ) ; } $ lockObject -> release ( ) ; } if ( stripos ( $ log , 'devlog' ) !== FALSE ) { // copy message also to the developer log self :: devLog ( $ msg , 'Core' , self :: SYSLOG_SEVERITY_WARNING ) ; } // do not use console in login screen if ( stripos ( $ log , 'console' ) !== FALSE && isset ( $ GLOBALS [ 'BE_USER' ] -> user [ 'uid' ] ) ) { t3lib_utility_Debug :: debug ( $ msg , $ date , 'Deprecation Log' ) ; } }
docstring: Writes a message to the deprecation log.
  
  @param string $msg Message (in English).
  @return void
docstring_tokens: Writes a message to the deprecation log .