omadrm/drmengine/dcfrepository/server/inc/drmlog.h
author Pat Downey <patd@symbian.org>
Fri, 12 Feb 2010 14:30:27 +0000
changeset 9 ce0d1c675e43
parent 0 95b198f216e5
child 12 8a03a285ab14
permissions -rw-r--r--
Minor update.

/*
* Copyright (c) 2004 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:  Debug log macro definitions
*
*/



#ifndef DRMLOG_H
#define DRMLOG_H

//  INCLUDES
#if (defined _DEBUG || defined _LOGGING)
#include <E32SVR.H>
#include <flogger.h>

// CONSTANTS
// MACROS

#ifndef DRMFLOGFILE
#define DRMFLOGFILE _L("DcfRepSrv.log")
#endif

#define DRMLOG( a ) \
    RFileLogger::Write(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a); \
    RDebug::Print( a );
    
#define DRMLOG2( a, b ) \
    RFileLogger::WriteFormat(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a, b); \
    RDebug::Print( a, b );
     
#define DRMLOGHEX( a ) \
    RFileLogger::HexDump(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, _S(""), _S(""), (a).Ptr(), (a).Size());

#else

#define DRMLOG( a ) 
#define DRMLOG2( a, b ) 
#define DRMLOGHEX( a )

#endif // _DEBUG

// DATA TYPES
// FUNCTION PROTOTYPES
// FORWARD DECLARATIONS
// CLASS DECLARATION

#endif      // DRMLOG_H   
            
// End of File