LOG4CPP::SIMPLECONFIGURATOR(3)

πŸ“¦
version 1.1.4 Β· 3 versions
, in opensuse-leap 16.0

Hey bestie πŸ’– welcome to the log4cpp::SimpleConfigurator(3) page β€” it lives in the Library Functions Manual, and it's all about the log4cpp::SimpleConfigurator class. Buckle up, we're getting into it πŸŽ€

🌸 NAME 🌸

log4cpp::SimpleConfigurator β€” this class implements a simple Configurator for log4cpp. That's the whole vibe ✨

✨ SYNOPSIS ✨

First, grab the header:

#include <SimpleConfigurator.hh>

🫢 Static Public Member Functions 🫢

  • static void configure (const std::string &initFileName) β€” configure log4cpp with the configuration in the given file πŸ’…
  • static void configure (std::istream &initFile) β€” configure log4cpp with the configuration in the given file πŸ¦‹

πŸ’– Detailed Description πŸ’–

This class implements a simple Configurator for log4cpp.

It is a temporary hack with an undocumented configuration format. Yep, you read that right β€” it's giving "we'll deal with it later" energy 😭

πŸ’€ Deprecated πŸ’€

As of version 0.3.2 log4cpp includes a log4j format compatible PropertyConfigurator, removing the need for SimpleConfigurator. This class will be removed in 0.4.0.

So yeah, bestie β€” this one is lowkey on its way out. Plan accordingly, no cap. πŸ’€

🧚 Member Function Documentation 🧚

🌸 void log4cpp::SimpleConfigurator::configure (const std::string & initFileName) [static] 🌸

void log4cpp::SimpleConfigurator::configure (const std::string &
    initFileName) [static]

Configure log4cpp with the configuration in the given file. NB. The configuration file format is undocumented and may change without notice. πŸ™ˆ

  • Since: 0.2.6
  • Parameters: initFileName β€” name of the configuration file
  • Exceptions: ConfigureFailure if the method encountered a read or syntax error.

🌸 void log4cpp::SimpleConfigurator::configure (std::istream & initFile) [static] 🌸

void log4cpp::SimpleConfigurator::configure (std::istream & initFile)
    [static]

Configure log4cpp with the configuration in the given file. NB. The configuration file format is undocumented and may change without notice. 😭

  • Since: 0.3.1
  • Parameters: initFile β€” an input stream to the configuration file
  • Exceptions: ConfigureFailure if the method encountered a read or syntax error.

πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for log4cpp from the source code. Yes, the manpage itself says this β€” iconic automation behavior πŸ€–βœ¨


That's the whole page, bestie! Footer sign-off vibes: log4cpp, Version 1.1, and log4cpp::S...onfigurator(3). Go configure responsibly πŸ’œπŸ¦‹

πŸ“¦ where this page comes from