40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
|
|
/*
|
|||
|
|
* EmptyActionLoggerInitializer.cpp
|
|||
|
|
*
|
|||
|
|
* Created on: 23 янв. 2022 г.
|
|||
|
|
* Author: sozonov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include "EmptyActionLogger.hh"
|
|||
|
|
|
|||
|
|
#include "../../systemic/ActionLogger.hpp"
|
|||
|
|
#include "../../systemic/MemberFuntion.hpp"
|
|||
|
|
|
|||
|
|
application::log::EmptyActionLogger::EmptyActionLogger( const Links & links ) : links( links ) {}
|
|||
|
|
|
|||
|
|
|
|||
|
|
bool application::log::EmptyActionLogger::input( Environment & env ) {
|
|||
|
|
|
|||
|
|
return ( true );
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void application::log::EmptyActionLogger::build( Environment & env ) {
|
|||
|
|
|
|||
|
|
typedef systemic::EmptyMessageActionLogger EmptyActionLogger;
|
|||
|
|
|
|||
|
|
EmptyActionLogger * loggable = memories::instance_object<EmptyActionLogger>( env.static_setup_ma);
|
|||
|
|
|
|||
|
|
|
|||
|
|
env.rholder.share<logging::ILoggable>(*loggable, links.log);
|
|||
|
|
|
|||
|
|
|
|||
|
|
typedef systemic::detail::MemberFuntion<EmptyActionLogger, void, &EmptyActionLogger::logging > ActionLogging;
|
|||
|
|
ActionLogging * action_log = memories::instance_object<ActionLogging>( env.static_setup_ma, *loggable );
|
|||
|
|
env.rholder.share<Action>( *action_log, links.logging );
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|