int level = 1;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Command line options successfully parsed." << endl;
- log_notice(msg.str(),level);
+ log_notice("Command line options successfully parsed.",level);
}
}
int level = 1;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Config files successfully parsed." << endl;
- log_notice(msg.str(),level);
+ log_notice("Config files successfully parsed.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Missing option to initialize service. Protocol, host, login and password must be specified." << endl;
- log_error(msg.str(),level);
+ log_error("Missing option to initialize service. Protocol, host, login and password must be specified.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Error while trying to fork." << endl;
- log_notice(msg.str(),level);
+ log_notice("Error while trying to fork.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Caught SIGTERM. Exiting..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Caught SIGTERM. Exiting...",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Caught SIGUSR1. Switching to offline mode..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Caught SIGUSR1. Switching to offline mode...",level);
}
}
int level = 1;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Caught SIGHUP. Reloading config and switching to online mode..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Caught SIGHUP. Reloading config and switching to online mode...",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Offline mode..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Offline mode...",level);
}
}
int level = 1;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Serialized objects successfully." << endl;
- log_notice(msg.str(),level);
+ log_notice("Serialized objects successfully.",level);
}
}
int level = 1;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "De-serialized objects successfully." << endl;
- log_notice(msg.str(),level);
+ log_notice("De-serialized objects successfully.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "IP-Address of this host could not be determined through any configured webcheck url." << endl;
- log_warning(msg.str(),level);
+ log_warning("IP-Address of this host could not be determined through any configured webcheck url.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Shutting down ..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Shutting down ...",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Shutting down complete ..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Shutting down complete ...",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Shutting down parent process completed ..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Shutting down parent process completed ...",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Shutting down parent process ..." << endl;
- log_notice(msg.str(),level);
+ log_notice("Shutting down parent process ...",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Missing option to initialize proxy. http_proxy and http_proxy_port must be specified." << endl;
- log_error(msg.str(),level);
+ log_error("Missing option to initialize proxy. http_proxy and http_proxy_port must be specified.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Could not get salt, time and sign from map." << endl;
- log_warning(msg.str(),level);
+ log_warning("Could not get salt, time and sign from map.",level);
}
}
int level = 0;
if ( (level <= Loglevel) || ((level <= ExternalWarningLevel) && (!ExternalWarningLog.empty())) )
{
- ostringstream msg;
- msg << "Gnudip requires explicit definition of servername via config!" << endl;
- log_warning(msg.str(),level);
+ log_warning("Gnudip requires explicit definition of servername via config!",level);
}
}