Commit 3e8b461d authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[1704] Use 'logger' as the task name for all interprocess sync objects inside log/

parent 949d3d2f
......@@ -151,7 +151,7 @@ LoggerManager::readLocalMessageFile(const char* file) {
MessageReader reader(&dictionary);
// Turn off use of any lock files
logger.setInterprocessSync(new isc::util::InterprocessSyncNull("log"));
logger.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
try {
......
......@@ -283,11 +283,11 @@ int main(int argc, char** argv) {
// Log a few messages to different loggers.
isc::log::Logger logger_ex(ROOT_NAME);
logger_ex.setInterprocessSync(new isc::util::InterprocessSyncNull(ROOT_NAME));
logger_ex.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
isc::log::Logger logger_alpha("alpha");
logger_alpha.setInterprocessSync(new isc::util::InterprocessSyncNull("alpha"));
logger_alpha.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
isc::log::Logger logger_beta("beta");
logger_beta.setInterprocessSync(new isc::util::InterprocessSyncNull("beta"));
logger_beta.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
LOG_FATAL(logger_ex, LOG_WRITE_ERROR).arg("test1").arg("42");
LOG_ERROR(logger_ex, LOG_READING_LOCAL_FILE).arg("dummy/file");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment