]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/log.cpp
Some old devel stuff
[irc/gameservirc.git] / gameserv / log.cpp
index c1f68f06fd0e4a381d602d11556ca4cd5c4da70d..fda60ba9d2f8e1621b7cc035ce71b9d1b6d73346 100644 (file)
@@ -1,7 +1,12 @@
 #include "extern.h"
 #include <cctype>
 #include <stdio.h>
-#include <fstream.h>
+#include <fstream>
+
+using std::endl;
+using std::cerr;
+using std::ofstream;
+using std::ios;
 
 void log(const char *fmt, ...)
 {
@@ -15,11 +20,11 @@ void log(const char *fmt, ...)
     ts = new char[32];
     output = new char[4096];
 
-    outfile.open(logfile, ios::out | ios::app);
+    outfile.open("gameserv.log", ios::out | ios::app);
 
     if (outfile.fail())
     {
-       cerr << "Error opening " << logfile << endl;
+       cerr << "Error opening gameserv.log" << endl;
        return;
     }