X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Futil%2FNDC.cpp;h=249cc96267fefacd705d3838990c869173d6483d;hb=5cb314df178f78c6fa7b9826c2c5a5298ec7a473;hp=1886721930cbd68704979a0ab5b1be0bea7cb489;hpb=c3eaaebd67a820207b22b61fed6c626c39245a2f;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/util/NDC.cpp b/xmltooling/util/NDC.cpp index 1886721..249cc96 100644 --- a/xmltooling/util/NDC.cpp +++ b/xmltooling/util/NDC.cpp @@ -1,45 +1,43 @@ -/* - * Copyright 2001-2006 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* NDC.cpp - * - * Diagnostic context for logging - * - * $Id:$ - */ - -#include "internal.h" -#include "util/NDC.h" - -#include - -using namespace std; -using namespace xmltooling; - -NDC::NDC(const char* context) -{ - log4cpp::NDC::push(context); -} - -NDC::NDC(const string& context) -{ - log4cpp::NDC::push(context); -} - -NDC::~NDC() -{ - log4cpp::NDC::pop(); -} +/* + * Copyright 2001-2007 Internet2 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * NDC.cpp + * + * Diagnostic context for logging + */ + +#include "internal.h" +#include "util/NDC.h" + +#include + +using namespace xmltooling; + +NDC::NDC(const char* context) +{ + log4cpp::NDC::push(context); +} + +NDC::NDC(const std::string& context) +{ + log4cpp::NDC::push(context); +} + +NDC::~NDC() +{ + log4cpp::NDC::pop(); +}