bluetooth/btexample/example/btsocket/src/exbtutil.cpp
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name     : exbtutil.cpp
       
    15 // Part of  : ex_btsocket
       
    16 // Created  : 17/11/2004 by Shane Kearns
       
    17 // Helper functions
       
    18 // Version  :
       
    19 // 
       
    20 //
       
    21 
       
    22 #include <flogger.h>
       
    23 #include "exbtutil.h"
       
    24 
       
    25 _LIT(KExBtPanicCat, "EX_BTSOCKET");
       
    26 #ifdef _DEBUG
       
    27 _LIT(KLogDir, "BT");
       
    28 _LIT(KLogFile, "EX_BTSOCKET.txt");
       
    29 #endif // _DEBUG
       
    30 void ExBtSocket::Panic(TExBtPanic aReason)
       
    31 {
       
    32 	User::Panic(KExBtPanicCat, aReason);
       
    33 }
       
    34 
       
    35 #ifdef _DEBUG
       
    36 void ExBtSocket::Log(const TRefByValue<const TDesC> aFmt, ...)
       
    37 	{
       
    38 	VA_LIST list;
       
    39 	VA_START(list, aFmt);
       
    40 	RFileLogger::WriteFormat(KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list);
       
    41 	}
       
    42 #endif
       
    43