diff --git a/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h b/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h index b8c0a3bec651711658eac6f3fd95a654c9511819..2d387c64be304aa2bf6996cb5c6d8cbecfaf17b3 100644 --- a/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h +++ b/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h @@ -30,11 +30,9 @@ namespace Poco namespace Mantid { - /** - * Returns the welcome message for Mantid. This is echoed to stdout by the - * ConfigService - */ - static std::string welcomeMessage(); + + /// Returns the welcome message for Mantid. + DLLExport std::string welcomeMessage(); namespace Kernel { diff --git a/Code/Mantid/Kernel/src/ConfigService.cpp b/Code/Mantid/Kernel/src/ConfigService.cpp index ebadd55ab449b32c561837f27d0b8f82efcecb21..7b450a1c8fe2ec11d53b4e3f5f946a598283b3a7 100644 --- a/Code/Mantid/Kernel/src/ConfigService.cpp +++ b/Code/Mantid/Kernel/src/ConfigService.cpp @@ -32,7 +32,8 @@ namespace Mantid { /** - * Returns the welcome message for Mantid. This is echoed to stdout by the ConfigService. + * Get the welcome message for Mantid. + * @returns A string containing the welcome message for Mantid. */ std::string welcomeMessage() { @@ -186,7 +187,6 @@ ConfigServiceImpl::ConfigServiceImpl() : g_log.debug() << "ConfigService created." << std::endl; g_log.debug() << "Configured base directory of application as " << getBaseDir() << std::endl; - std::cout << "\n" << Mantid::welcomeMessage() << "\n" << std::endl; g_log.information() << "This is Mantid Version " << MANTID_VERSION << std::endl; }