loggingservices/filelogger/SCLI/FLOGCLI.CPP
branchRCL_3
changeset 6 5ffdb8f2067f
parent 0 08ec8eefde2f
child 15 fcc16690f446
equal deleted inserted replaced
2:6862383cf555 6:5ffdb8f2067f
   593 	{
   593 	{
   594 	if (LogSTI()) 
   594 	if (LogSTI()) 
   595 		{
   595 		{
   596 		TBuf<KLogBufferSize> n;
   596 		TBuf<KLogBufferSize> n;
   597 		n.Copy(aBuf);
   597 		n.Copy(aBuf);
   598  	 	if (iLogFile.Valid())
   598 		TFileName logFileName = iLogFile.Name();
   599 			{
   599 		RDebug::Print(_L("FLG %S %S"),&logFileName,&n);
   600 			TFileName logFileName = iLogFile.Name();
       
   601 			RDebug::Print(_L("FLG %S %S"),&logFileName,&n);
       
   602 			} else
       
   603 				{
       
   604 				RDebug::Print(_L("FLG %S "),&n);
       
   605 				}
       
   606 		} else 		
   600 		} else 		
   607 			{
   601 			{
   608 			TPckg<TLogFile> logFilePckg(iLogFile);
   602 			TPckg<TLogFile> logFilePckg(iLogFile);
   609 			iLastError=SendReceive(EWriteLog,TIpcArgs (&logFilePckg, &aBuf));
   603 			iLastError=SendReceive(EWriteLog,TIpcArgs (&logFilePckg, &aBuf));
   610 			}
   604 			}
   626  	TPckg<TLogFile> logFilePckg(iLogFile);
   620  	TPckg<TLogFile> logFilePckg(iLogFile);
   627  	if (LogSTI()) 
   621  	if (LogSTI()) 
   628  		{
   622  		{
   629  	 	TBuf<KLogBufferSize> n;
   623  	 	TBuf<KLogBufferSize> n;
   630  	 	n.Copy(aBuf);
   624  	 	n.Copy(aBuf);
   631  	 	if (iLogFile.Valid())
   625 		TFileName logFileName = iLogFile.Name();
   632 			{
   626 		RDebug::Print(_L("FLG %S %S"),&logFileName,&n);
   633 			TFileName logFileName = iLogFile.Name();
       
   634 			RDebug::Print(_L("FLG %S %S"),&logFileName,&n);
       
   635 			} else
       
   636 				{
       
   637 				RDebug::Print(_L("FLG %S "),&n);
       
   638 				}
       
   639  	 	
       
   640  		} else
   627  		} else
   641  			{
   628  			{
   642  			SendReceive(ECreateWriteAndCloseLog, TIpcArgs( &logFilePckg, &aBuf));		// ignore error
   629  			SendReceive(ECreateWriteAndCloseLog, TIpcArgs( &logFilePckg, &aBuf));		// ignore error
   643  			}
   630  			}
   644 	}		
   631 	}