67 lines
2.3 KiB
C++
67 lines
2.3 KiB
C++
/*
|
|
* add.hh
|
|
*
|
|
* Created on: 15 èþí. 2020 ã.
|
|
* Author: LeonidTitov
|
|
*/
|
|
|
|
#ifndef UMLIBRARY_APPLICATION_LOG_ADD_HH_
|
|
#define UMLIBRARY_APPLICATION_LOG_ADD_HH_
|
|
|
|
#include "../../configuration/software/AppCreate.hh"
|
|
|
|
#include "AttachLogger.hh"
|
|
#include "LogProvider.hh"
|
|
#include "MemoryLogHandler.hh"
|
|
#include "StorageManager.hh"
|
|
#include "SignalActionLogger.hh"
|
|
#include "StatusActionLogger.hh"
|
|
#include "EmptyActionLogger.hh"
|
|
#include "BinaryDataLogger.hh"
|
|
#include "TwoSignalActionLogger.hh"
|
|
|
|
#include "../ApplicationInitializerList.hh"
|
|
|
|
namespace application { namespace log {
|
|
|
|
void add( configuration::software::ApplicationConfigurator & configurator );
|
|
|
|
}
|
|
}
|
|
|
|
inline void application::log::add(
|
|
configuration::software::ApplicationConfigurator & configurator ) {
|
|
|
|
using namespace configuration;
|
|
typedef typename software::AppCreate<TwoSignalActionLogger, void, void> TSAL;
|
|
registration( configurator, &TSAL::build, info::TwoSignalActionLogger );
|
|
|
|
using namespace configuration;
|
|
typedef typename software::AppCreate<BinaryDataLogger, void, void> BDL;
|
|
registration( configurator, &BDL::build, info::BinaryDataLogger );
|
|
|
|
typedef typename software::AppCreate<EmptyActionLogger, void, void> EAL;
|
|
registration( configurator, &EAL::build, info::EmptyActionLogger );
|
|
|
|
typedef typename software::AppCreate<StatusActionLogger, void, void> StAL;
|
|
registration( configurator, &StAL::build, info::StatusActionLogger );
|
|
|
|
typedef typename software::AppCreate<SignalActionLogger, void, void> SigAL;
|
|
registration( configurator, &SigAL::build, info::SignalActionLogger );
|
|
|
|
typedef typename software::AppCreate<AttachLogger, AttachLogger::Setting, void> LC;
|
|
registration( configurator, &LC::build, info::AttachLogger );
|
|
|
|
typedef typename software::AppCreate<LogProvider, LogProvider::Setting, void> LP;
|
|
registration( configurator, &LP::build, info::LogProvider );
|
|
|
|
typedef typename software::AppCreate<MemoryLogHandler, MemoryLogHandler::Setting, configuration::ProcessConfig> MLH;
|
|
registration( configurator, &MLH::build, info::MemoryLogHandler );
|
|
|
|
typedef typename software::AppCreate<StorageManager, StorageManager::Setting, configuration::ProcessConfig> SM;
|
|
registration( configurator, &SM::build, info::StorageManager );
|
|
|
|
}
|
|
|
|
#endif /* UMLIBRARY_APPLICATION_LOG_ADD_HH_ */
|