Bind2Loader()
{
BackendMakers().report(new Bind2Factory);
- L<<Logger::Notice<<"[Bind2Backend] This is the bind backend version "VERSION" ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << "[bind2backend] This is the bind backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
static Bind2Loader bind2loader;
Loader()
{
BackendMakers().report(new DB2Factory);
- L << Logger::Notice << kBackendName << " This is the DB2 module version "VERSION" ("__DATE__", "__TIME__") reporting" << endl;
+ L << Logger::Info << "[db2backend] This is the db2 backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
public:
GeoLoader() {
BackendMakers().report(new GeoFactory);
-
- L << Logger::Info << "[GeoBackend] This is the geobackend ("
- __DATE__", "__TIME__" - $Revision: 1.1 $) reporting" << endl;
+ L << Logger::Info << "[geobackend] This is the geo backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
gMySQLLoader()
{
BackendMakers().report(new gMySQLFactory("gmysql"));
- L<<Logger::Warning<<"This is module gmysqlbackend.so reporting"<<endl;
+ L << Logger::Info << "[gmysqlbackend] This is the gmysql backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
static gMySQLLoader gmysqlloader;
//! This reports us to the main UeberBackend class
gOracleLoader() {
BackendMakers().report(new gOracleFactory("goracle"));
- L<<Logger::Warning<<"This is module goraclebackend reporting"<<endl;
+ L << Logger::Info << "[goraclebackend] This is the goracle backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
{
BackendMakers().report(new gPgSQLFactory("gpgsql"));
BackendMakers().report(new gPgSQLFactory("gpgsql2"));
- L<<Logger::Warning<<"This is module gpgsqlbackend.so reporting"<<endl;
+ L << Logger::Info << "[gpgsqlbackend] This is the gpgsql backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
static gPgSQLLoader gpgsqlloader;
gSQLite3Loader()
{
BackendMakers().report( new gSQLite3Factory( "gsqlite3" ));
- L<<Logger::Warning << "This is module gsqlite3 reporting" << std::endl;
+ L << Logger::Info << "[gsqlite3] This is the gsqlite3 backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << std::endl;
}
};
LdapLoader()
{
BackendMakers().report( &factory );
- L << Logger::Info << " [LdapBackend] This is the ldap module version "VERSION" ("__DATE__", "__TIME__") reporting" << endl;
+ L << Logger::Info << "[ldapbackend] This is the ldap backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
LMDBLoader()
{
BackendMakers().report(new LMDBFactory);
-
- L<<Logger::Info<<" [LMDBBackend] This is the LMDBBackend version ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << "[lmdbbackend] This is the lmdb backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
{
BackendMakers().report(new LUAFactory);
- L<<Logger::Notice<<"[LUABackend] This is the luabackend ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << "[luabackend] This is the lua backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
public:
MyDNSLoader() {
BackendMakers().report(new MyDNSFactory());
- L<<Logger::Info<<backendName<<" This is the MyDNSBackend ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << "[mydnsbackend] This is the mydns backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
OdbxLoader()
{
BackendMakers().report( &factory );
- L.log( " [OpendbxBackend] This is the opendbx module version "VERSION" ("__DATE__", "__TIME__") reporting", Logger::Info );
+ L.log( "[opendbxbackend] This is the opendbx backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting", Logger::Info );
}
};
PipeLoader()
{
BackendMakers().report(new PipeFactory);
-
- L<<Logger::Notice<<kBackendId<<" This is the pipebackend version "VERSION" ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << kBackendId <<" This is the pipe backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
#include "pdns/dnspacket.hh"
#include "pdns/pdnsexception.hh"
#include "pdns/logger.hh"
+#include "pdns/version.hh"
#include <boost/algorithm/string.hpp>
/* FIRST PART */
RandomLoader()
{
BackendMakers().report(new RandomFactory);
-
- L<<Logger::Info<<" [RandomBackend] This is the randombackend version "VERSION" ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << "[randombackend] This is the random backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
RemoteLoader::RemoteLoader() {
BackendMakers().report(new RemoteBackendFactory);
- L<<Logger::Notice<<kBackendId<<" This is the remotebackend version "VERSION" ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << kBackendId << " This is the remote backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
static RemoteLoader remoteloader;
public:
TinyDNSLoader() {
BackendMakers().report(new TinyDNSFactory);
- L<<Logger::Info<<" [TinyDNSBackend] This is the TinyDNSBackend ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << " [tinydnsbackend] This is the tinydns backend version " VERSION " (" __DATE__ ", " __TIME__ ") reporting" << endl;
}
};
RandomLoader()
{
BackendMakers().report(new RandomFactory);
-
- L<<Logger::Info<<" [RandomBackend] This is the randombackend ("__DATE__", "__TIME__") reporting"<<endl;
+ L << Logger::Info << "[randombackend] This is the random backend version " VERSION " reporting" << endl;
}
};