Skip to content
Snippets Groups Projects
Commit 1b9bc54f authored by Alexandre MALFREYT's avatar Alexandre MALFREYT
Browse files

cleanup: add info attr & replace log attr (using yat4tango::Logging)

parent 79af4787
No related branches found
No related tags found
1 merge request!1Cleanup: clean code (DODD)
......@@ -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,7 +183,13 @@ 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)
{
......@@ -190,6 +199,8 @@ void SingleShotAO::init_device()
return;
}
INFO_STREAM << "Initializing device";
//- trace/profile this method
yat4tango::TraceHelper t("SingleShotAO::init_device", this);
......
......@@ -48,6 +48,9 @@
#include <tango.h>
//using namespace Tango;
#include <yat4tango/Logging.h>
#include <yat4tango/DeviceInfo.h>
#include "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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment