michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef txLog_h__ michael@0: #define txLog_h__ michael@0: michael@0: #include "prlog.h" michael@0: michael@0: #ifdef PR_LOGGING michael@0: class txLog michael@0: { michael@0: public: michael@0: static PRLogModuleInfo *xpath; michael@0: static PRLogModuleInfo *xslt; michael@0: }; michael@0: michael@0: #define TX_LG_IMPL \ michael@0: PRLogModuleInfo * txLog::xpath = 0; \ michael@0: PRLogModuleInfo * txLog::xslt = 0; michael@0: michael@0: #define TX_LG_CREATE \ michael@0: txLog::xpath = PR_NewLogModule("xpath"); \ michael@0: txLog::xslt = PR_NewLogModule("xslt") michael@0: michael@0: #else michael@0: michael@0: #define TX_LG_IMPL michael@0: #define TX_LG_CREATE michael@0: michael@0: #endif michael@0: #endif