Browse Source

[trac976] changed default root logger name to 'bind10'

Jelte Jansen 14 years ago
parent
commit
ec6aba3f5e
3 changed files with 4 additions and 4 deletions
  1. 1 1
      src/lib/log/logger_manager.cc
  2. 2 2
      src/lib/log/logger_support.cc
  3. 1 1
      src/lib/log/logger_support.h

+ 1 - 1
src/lib/log/logger_manager.cc

@@ -50,7 +50,7 @@ int& initDebugLevel() {
 }
 
 std::string& initRootName() {
-    static std::string root("b10root");
+    static std::string root("bind10");
     return (root);
 }
 

+ 2 - 2
src/lib/log/logger_support.cc

@@ -54,8 +54,8 @@ initLogger(const string& root, isc::log::Severity severity, int dbglevel,
 void initLogger(isc::log::Severity severity, int dbglevel) {
 
     // Root logger name is defined by the environment variable B10_LOGGER_ROOT.
-    // If not present, the name is "b10root".
-    const char* DEFAULT_ROOT = "b10root";
+    // If not present, the name is "bind10".
+    const char* DEFAULT_ROOT = "bind10";
     const char* root = getenv("B10_LOGGER_ROOT");
     if (! root) {
         root = DEFAULT_ROOT;

+ 1 - 1
src/lib/log/logger_support.h

@@ -49,7 +49,7 @@ void initLogger(const std::string& root,
 /// environment variables.  These are:
 ///
 /// B10_LOGGER_ROOT
-/// Name of the root logger.  If not given, the string "b10root" will be used.
+/// Name of the root logger.  If not given, the string "bind10" will be used.
 ///
 /// B10_LOGGER_SEVERITY
 /// Severity of messages that will be logged.  This must be one of the strings