*/
std::string GetUID();
+ static const char LogHeader[];
+
/** Find a user in the UUID hash
* @param nick The nickname to find
* @return A pointer to the user, or NULL if the user does not exist
fw = fwi->second;
}
FileLogStream* fls = new FileLogStream(loglevel, fw);
+ fls->OnLog(SPARSE, "HEADER", InspIRCd::LogHeader);
AddLogTypes(type, fls, true);
}
}
Modules[filename] = newmod;
if (defer)
{
- ServerInstance->Logs->Log("MODULE", DEFAULT,"New module introduced: %s", filename.c_str());
+ ServerInstance->Logs->Log("MODULE", DEFAULT,"New module introduced: %s (Module version %s)",
+ filename.c_str(), newhandle->GetVersion().c_str());
}
else
{
Module* mod = i->second;
try
{
+ ServerInstance->Logs->Log("MODULE", DEBUG, "Initializing %s", i->first.c_str());
mod->init();
}
catch (CoreException& modexcept)
return versiondata;
}
+const char InspIRCd::LogHeader[] =
+ "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")"
+ " - compiled on " SYSTEM;
+
void InspIRCd::BuildISupport()
{
// the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...