***********************
** FILE NAME : database.cpp
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
-** VERSION NUMBER : $Revision: 1.9 $
+** VERSION NUMBER : $Revision: 1.10 $
**
** DESCRIPTION : Implementation of the gnucomo database classes
**
/*****************************
$Log: database.cpp,v $
- Revision 1.9 2003-08-17 11:39:56 arjen
+ Revision 1.10 2003-12-03 08:23:17 arjen
+ Write messages to the log stream instead of cout.
+
+ Revision 1.9 2003/08/17 11:39:56 arjen
Changed the gnucomo_database class to the new PostgreSQL
library, libpqxx
*****************************/
-static const char *RCSID = "$Id: database.cpp,v 1.9 2003-08-17 11:39:56 arjen Exp $";
+static const char *RCSID = "$Id: database.cpp,v 1.10 2003-12-03 08:23:17 arjen Exp $";
#include <AXE/date.h>
#include "database.h"
+extern std::ostream *log;
+
/*=========================================================================
** NAME : gnucomo_database
** SYNOPSIS : gnucomo_database(gnucomo_config &c);
String issueid("");
- std::cout << "Creating notification for " << issue << ": " << remark << "\n";
+ *log << "Creating notification for " << issue << ": " << remark << "\n";
qry = "select type_of_issueid, suggested_priority from type_of_issue where name='";
qry += issue + "'";