original_string: public static function logMessage($strMessage, $strLog=null)
      {
          if ($strLog === null)
          {
              $strLog = 'prod-' . date('Y-m-d') . '.log';
          }
          else 
          {
              $strLog = 'prod-' . date('Y-m-d') . '-' . $strLog . '.log';
          }
          
          $strLogsDir = null;
          
          if (($container = \System::getContainer()) !== null)
          {
              $strLogsDir = $container->getParameter('kernel.logs_dir');
          }
          
          if (!$strLogsDir)
          {
              $strLogsDir = TL_ROOT . '/var/logs';
          }
          
          error_log(sprintf("[%s] %s\n", date('d-M-Y H:i:s'), $strMessage), 3, $strLogsDir . '/' . $strLog);
      }
code: public static function logMessage($strMessage, $strLog=null)
      {
          if ($strLog === null)
          {
              $strLog = 'prod-' . date('Y-m-d') . '.log';
          }
          else 
          {
              $strLog = 'prod-' . date('Y-m-d') . '-' . $strLog . '.log';
          }
          
          $strLogsDir = null;
          
          if (($container = \System::getContainer()) !== null)
          {
              $strLogsDir = $container->getParameter('kernel.logs_dir');
          }
          
          if (!$strLogsDir)
          {
              $strLogsDir = TL_ROOT . '/var/logs';
          }
          
          error_log(sprintf("[%s] %s\n", date('d-M-Y H:i:s'), $strMessage), 3, $strLogsDir . '/' . $strLog);
      }
code_tokens: public static function logMessage ( $ strMessage , $ strLog = null ) { if ( $ strLog === null ) { $ strLog = 'prod-' . date ( 'Y-m-d' ) . '.log' ; } else { $ strLog = 'prod-' . date ( 'Y-m-d' ) . '-' . $ strLog . '.log' ; } $ strLogsDir = null ; if ( ( $ container = \ System :: getContainer ( ) ) !== null ) { $ strLogsDir = $ container -> getParameter ( 'kernel.logs_dir' ) ; } if ( ! $ strLogsDir ) { $ strLogsDir = TL_ROOT . '/var/logs' ; } error_log ( sprintf ( "[%s] %s\n" , date ( 'd-M-Y H:i:s' ) , $ strMessage ) , 3 , $ strLogsDir . '/' . $ strLog ) ; }
docstring: Wrapper for old log_message
  
  @param string $strMessage
  @param string $strLogg
docstring_tokens: Wrapper for old log_message