diff --git a/src/SingleShotAO.cpp b/src/SingleShotAO.cpp index 7d1e7d36ec2741ab5b60b5b48b3814f34ca850f4..46a79c43ed99cfd5b2f10a42b30bab28fbe69a00 100755 --- a/src/SingleShotAO.cpp +++ b/src/SingleShotAO.cpp @@ -70,6 +70,8 @@ static const char *RcsId = "$Id: DevServ.cpp 13293 2009-04-07 10:53:56Z pascal_v #include <tango.h> +#include <yat4tango/Logging.h> +#include <yat4tango/DeviceInfo.h> #include <SingleShotAO.h> #include <SingleShotAOClass.h> #include "SingleShotAOTypesAndConsts.h" @@ -164,7 +166,8 @@ void SingleShotAO::delete_device() } //- remove the inner appender - yat4tango::InnerAppender::release(this); + yat4tango::Logging::release(this); + yat4tango::DeviceInfo::release(this); } @@ -180,9 +183,15 @@ void SingleShotAO::init_device() //- initialize the inner appender (first thing to do) try { - yat4tango::InnerAppender::initialize(this); + INFO_STREAM << "Create the InnerAppender & FileAppender in order to manage logs." << endl; + yat4tango::Logging::initialize(this); + + INFO_STREAM << "Create the DeviceInfo in order to manage info on versions." << endl; + yat4tango::DeviceInfo::initialize(this, YAT_XSTR(PROJECT_NAME), YAT_XSTR(PROJECT_VERSION)); + // yat4tango::DeviceInfo::add_dependency(this, "Dependency Name", YAT_XSTR(dependency_name_PROJECT_VERSION)); + // TODO: Add dependencies } - catch( Tango::DevFailed& df ) + catch (Tango::DevFailed &df) { ERROR_STREAM << df << std::endl; m_state = Tango::FAULT; @@ -190,6 +199,8 @@ void SingleShotAO::init_device() return; } + INFO_STREAM << "Initializing device"; + //- trace/profile this method yat4tango::TraceHelper t("SingleShotAO::init_device", this); diff --git a/src/SingleShotAO.h b/src/SingleShotAO.h index 8eb2b209f7520f63a957046b8ef42d7ffa73fac4..4289487d0415bdec78381068401d217fc4d1ebae 100755 --- a/src/SingleShotAO.h +++ b/src/SingleShotAO.h @@ -48,6 +48,9 @@ #include <tango.h> //using namespace Tango; +#include <yat4tango/Logging.h> +#include <yat4tango/DeviceInfo.h> + #include "SingleShotAOManager.h" /** diff --git a/src/SingleShotAOManager.h b/src/SingleShotAOManager.h index 434375924bf38c49845b8564755cd568eef7dd65..27e73ced03b88b1dbe5300aeaa4272ff12a586b8 100644 --- a/src/SingleShotAOManager.h +++ b/src/SingleShotAOManager.h @@ -19,7 +19,6 @@ #include "SingleShotAOTypesAndConsts.h" #include <asl/SingleShotAO.h> /*Use YAT library*/ -#include <yat4tango/InnerAppender.h> #include <yat/memory/DataBuffer.h> #include <yat4tango/PropertyHelper.h> #include <map>