Skip to Content.
Sympa Menu

mace-opensaml-users - RE: [OpenSAML] logging

Subject: OpenSAML user discussion

List archive

RE: [OpenSAML] logging


Chronological Thread 
  • From: "Scott Cantor" <>
  • To: <>
  • Subject: RE: [OpenSAML] logging
  • Date: Thu, 5 Aug 2010 12:04:27 -0400
  • Organization: The Ohio State University

> I'm just getting started with opensaml (C++) and I'm writing a small
example
> program to try out the opensaml library.

Good luck. I wish I had more documentation for you, but...

> I can see that opensaml uses log4cpp for logging, but how do I set up the
> logging? Do I have to call into the log4cpp library myself (e.g. using
> ProperyConfigurator) or is it simply a question of putting a configuration
> file in the right place? If the latter is the case, what does the
> configuration file look like?

Unless you're constrained, you should stick with the log4shib version, which
is known to be safe. Many versions of log4cpp are buggy.

But to your question, you can call into the library as you wish, or you can
supply a log4j-style properties file and call
xmltooling::XMLConfig::log_config at any time. You can find examples of the
file in Shibboleth:

http://svn.middleware.georgetown.edu/view/cpp-sp/branches/REL_2/configs/

shibd.logger.in, native.logger.in, console.logger

-- Scott





Archive powered by MHonArc 2.6.16.

Top of Page