[shibboleth-sp2] 81/100: Add stderr appender

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.

commit 46f4ca6c475b818e69d26433120c0e4cb6b22574
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Tue Oct 26 21:40:42 2004 +0000

    Add stderr appender
---
 siterefresh/siterefresh.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/siterefresh/siterefresh.cpp b/siterefresh/siterefresh.cpp
index a7f92e3..d6ca239 100644
--- a/siterefresh/siterefresh.cpp
+++ b/siterefresh/siterefresh.cpp
@@ -59,6 +59,7 @@
 
 #include <fstream>
 #include <log4cpp/Category.hh>
+#include <log4cpp/OstreamAppender.hh>
 #include <xercesc/framework/URLInputSource.hpp>
 #include <xsec/enc/XSECCryptoProvider.hpp>
 #include <xsec/enc/XSECKeyInfoResolverDefault.hpp>
@@ -185,8 +186,9 @@ int main(int argc,char* argv[])
         return -100;
     }
 
-    Category& log=Category::getInstance("siterefresh");
     Category::setRootPriority(Priority::WARN);
+    Category::getRoot().addAppender(new OstreamAppender("default",&cerr));
+    Category& log=Category::getInstance("siterefresh");
     conf.schema_dir=path ? path : SHIB_SCHEMAS;
     if (!conf.init())
         return -10;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list