From 96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 3 May 2006 06:49:30 +0000 Subject: Added a simple test for the log system, and switched the multilog to the new singleton system, which unfortunately changed it's API slightly. Now it's not a pointer from the singleton, but I did add a new macro to make most usage of it even easier. --- src/programchain.cpp | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'src/programchain.cpp') diff --git a/src/programchain.cpp b/src/programchain.cpp index 4e53ac8..6120d58 100644 --- a/src/programchain.cpp +++ b/src/programchain.cpp @@ -1,27 +1,10 @@ -/*************************************************************************** - programchain.cpp - description - ------------------- - begin : Sat Sep 6 2003 - copyright : (C) 2003 by Mike Buland - email : eichlan@yf-soft.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - #include #include "programchain.h" -ProgramChain::ProgramChain() +ProgramChain::ProgramChain() : + xLog( MultiLog::getInstance() ) { - pLog = MultiLog::getLog(); - pLog->LineLog( MultiLog::LStatus, "Program Chain Initialized." ); + xLog.LineLog( MultiLog::LStatus, "Program Chain Initialized." ); } ProgramChain::~ProgramChain() @@ -62,7 +45,7 @@ bool ProgramChain::execChainOnce() { if( ((ProgramLink *)lLink[j])->timeSlice() == false ) { - pLog->LineLog( MultiLog::LInfo, "Shutting down due to signal from link #%d", j ); + xLog.LineLog( MultiLog::LInfo, "Shutting down due to signal from link #%d", j ); emergencyShutdown(); return false; } -- cgit v1.2.3