telephonyserverplugins/multimodetsy/Multimode/mSLOGGER.CPP
branchopencode
changeset 24 6638e7f4bd8f
parent 0 3553901f7fa8
--- a/telephonyserverplugins/multimodetsy/Multimode/mSLOGGER.CPP	Mon May 03 13:37:20 2010 +0300
+++ b/telephonyserverplugins/multimodetsy/Multimode/mSLOGGER.CPP	Thu May 06 15:10:38 2010 +0100
@@ -1,78 +1,78 @@
-// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
-// All rights reserved.
-// This component and the accompanying materials are made available
-// under the terms of "Eclipse Public License v1.0"
-// which accompanies this distribution, and is available
-// at the URL "http://www.eclipse.org/legal/epl-v10.html".
-//
-// Initial Contributors:
-// Nokia Corporation - initial contribution.
-//
-// Contributors:
-//
-// Description:
-//
-
-#include "mSLOGGER.H"		// Header file for this source file
-#include <flogger.h>		// for FLogger
-
-_LIT(KLogFolder,"etel");
-_LIT(KLogFileName,"mmtsy.txt");
-_LIT8(KTimeFormat,"%02d:%02d:%02d.%03d ");
-
-const TInt KTSYLogBufferSize=400;
-
-void TSYLogger::Write(const TDesC8& aText)
-	{
-	//
-	// Assemble time stamp and callers text into one string
-	TBuf8<KTSYLogBufferSize> buf;
-	TTime now;
-	now.UniversalTime();
-	TDateTime t(now.DateTime());
-	buf.Format(KTimeFormat,t.Hour(),t.Minute(),t.Second(),t.MicroSecond());
-	buf.Append(aText);
-
-	//
-	// Open log, write text to log and close log
-	RFileLogger log;
-	if(KErrNone==log.Connect())
-		{
-		log.CreateLog(KLogFolder,KLogFileName,EFileLoggingModeAppend);
-		log.SetDateAndTime(EFalse,EFalse);
-		log.Write(buf);
-		log.CloseLog();
-		log.Close();
-		}
-	}
-
-
-void TSYLogger::WriteFormat(TRefByValue<const TDesC8> aFmt,...)
-	{
-    //coverity[var_decl]	
-	VA_LIST list;
-	VA_START(list,aFmt);
-
-	//
-	// Assemble time stamp and callers text into one string
-	TBuf8<KTSYLogBufferSize> buf;
-	TTime now;
-	now.UniversalTime();
-	TDateTime t(now.DateTime());
-	buf.Format(KTimeFormat,t.Hour(),t.Minute(),t.Second(),t.MicroSecond());
-    //coverity[uninit_use_in_call]	
-	buf.AppendFormatList(aFmt,list);
-
-	//
-	// Open log, write text to log and close log
-	RFileLogger log;
-	if(KErrNone==log.Connect())
-		{
-		log.CreateLog(KLogFolder,KLogFileName,EFileLoggingModeAppend);
-		log.SetDateAndTime(EFalse,EFalse);
-		log.Write(buf);
-		log.CloseLog();
-		log.Close();
-		}
-	}
-
+// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#include "mSLOGGER.H"		// Header file for this source file
+#include <flogger.h>		// for FLogger
+
+_LIT(KLogFolder,"etel");
+_LIT(KLogFileName,"mmtsy.txt");
+_LIT8(KTimeFormat,"%02d:%02d:%02d.%03d ");
+
+const TInt KTSYLogBufferSize=400;
+
+void TSYLogger::Write(const TDesC8& aText)
+	{
+	//
+	// Assemble time stamp and callers text into one string
+	TBuf8<KTSYLogBufferSize> buf;
+	TTime now;
+	now.UniversalTime();
+	TDateTime t(now.DateTime());
+	buf.Format(KTimeFormat,t.Hour(),t.Minute(),t.Second(),t.MicroSecond());
+	buf.Append(aText);
+
+	//
+	// Open log, write text to log and close log
+	RFileLogger log;
+	if(KErrNone==log.Connect())
+		{
+		log.CreateLog(KLogFolder,KLogFileName,EFileLoggingModeAppend);
+		log.SetDateAndTime(EFalse,EFalse);
+		log.Write(buf);
+		log.CloseLog();
+		log.Close();
+		}
+	}
+
+
+void TSYLogger::WriteFormat(TRefByValue<const TDesC8> aFmt,...)
+	{
+    //coverity[var_decl]	
+	VA_LIST list;
+	VA_START(list,aFmt);
+
+	//
+	// Assemble time stamp and callers text into one string
+	TBuf8<KTSYLogBufferSize> buf;
+	TTime now;
+	now.UniversalTime();
+	TDateTime t(now.DateTime());
+	buf.Format(KTimeFormat,t.Hour(),t.Minute(),t.Second(),t.MicroSecond());
+    //coverity[uninit_use_in_call]	
+	buf.AppendFormatList(aFmt,list);
+
+	//
+	// Open log, write text to log and close log
+	RFileLogger log;
+	if(KErrNone==log.Connect())
+		{
+		log.CreateLog(KLogFolder,KLogFileName,EFileLoggingModeAppend);
+		log.SetDateAndTime(EFalse,EFalse);
+		log.Write(buf);
+		log.CloseLog();
+		log.Close();
+		}
+	}
+