Loading sld/trunk/src/error.cc +2 −1 Original line number Diff line number Diff line #include "error.hh" #include "log.hh" Error::Error(int i, const string s) { Loading @@ -15,7 +16,7 @@ Error::Error(const Error &e) void Error::print() const { if (msg_.str() != "") std::cerr << msg_.str() << "." << std::endl; logerr << msg_.str() << ".\n"; } string Error::message() const Loading sld/trunk/src/log.cc +0 −1 Original line number Diff line number Diff line #include <unistd.h> #include <iostream> #include <fstream> #include "error.h" #include "log.hh" Loading sld/trunk/src/log.hh +1 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ # define LOG_HH #include <ostream> #include <fstream> typedef std::string string; typedef std::ostream ostream; Loading @@ -16,7 +17,6 @@ public: bool file(const string &); bool has_file() const; friend Logger &operator<<(Logger &l, ostream &s); friend Logger &operator<<(Logger &l, const string &s); friend Logger &operator<<(Logger &l, const char *s); friend Logger &operator<<(Logger &l, int i); Loading sld/trunk/src/options.cc +1 −1 Original line number Diff line number Diff line Loading @@ -161,7 +161,7 @@ Options Options::getoptions(const string file) { else if (!strcasecmp(name, "logfile")) this->logfile = value; else std::cerr << "Invalid line " << i << ": " << line << std::endl; logerr << "Invalid line " << i << ": " << line << "\n"; } fs.close(); Loading Loading
sld/trunk/src/error.cc +2 −1 Original line number Diff line number Diff line #include "error.hh" #include "log.hh" Error::Error(int i, const string s) { Loading @@ -15,7 +16,7 @@ Error::Error(const Error &e) void Error::print() const { if (msg_.str() != "") std::cerr << msg_.str() << "." << std::endl; logerr << msg_.str() << ".\n"; } string Error::message() const Loading
sld/trunk/src/log.cc +0 −1 Original line number Diff line number Diff line #include <unistd.h> #include <iostream> #include <fstream> #include "error.h" #include "log.hh" Loading
sld/trunk/src/log.hh +1 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ # define LOG_HH #include <ostream> #include <fstream> typedef std::string string; typedef std::ostream ostream; Loading @@ -16,7 +17,6 @@ public: bool file(const string &); bool has_file() const; friend Logger &operator<<(Logger &l, ostream &s); friend Logger &operator<<(Logger &l, const string &s); friend Logger &operator<<(Logger &l, const char *s); friend Logger &operator<<(Logger &l, int i); Loading
sld/trunk/src/options.cc +1 −1 Original line number Diff line number Diff line Loading @@ -161,7 +161,7 @@ Options Options::getoptions(const string file) { else if (!strcasecmp(name, "logfile")) this->logfile = value; else std::cerr << "Invalid line " << i << ": " << line << std::endl; logerr << "Invalid line " << i << ": " << line << "\n"; } fs.close(); Loading