Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 29, 2011, 10:26:45 PM (13 years ago)
Author:
landauf
Message:

Shell and its derivatives are now based on the new output system

Location:
code/branches/output/src/libraries/util/output
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/output/BaseWriter.cc

    r8794 r8795  
    4747
    4848        for (size_t i = 0; i < lines.size(); ++i)
    49             this->printLine((i == 0 ? prefix : blanks) + lines[i]);
     49            this->printLine((i == 0 ? prefix : blanks) + lines[i], level);
    5050    }
    5151}
  • code/branches/output/src/libraries/util/output/BaseWriter.h

    r8794 r8795  
    4545
    4646        private:
    47             virtual void printLine(const std::string& line) = 0;
     47            virtual void printLine(const std::string& line, OutputLevel level) = 0;
    4848    };
    4949}
  • code/branches/output/src/libraries/util/output/ConsoleWriter.cc

    r8794 r8795  
    3737    ConsoleWriter::ConsoleWriter()
    3838    {
     39#ifdef ORXONOX_RELEASE
    3940        this->setLevelMax(level::user_info);
     41#else
     42        this->setLevelMax(level::internal_warning);
     43#endif
    4044        this->bEnabled_ = true;
    4145    }
     
    5155    }
    5256
    53     void ConsoleWriter::printLine(const std::string& line)
     57    void ConsoleWriter::printLine(const std::string& line, OutputLevel)
    5458    {
    5559        std::cout << line << std::endl;
  • code/branches/output/src/libraries/util/output/ConsoleWriter.h

    r8794 r8795  
    4444
    4545        protected:
    46             virtual void printLine(const std::string& line);
     46            virtual void printLine(const std::string& line, OutputLevel level);
    4747
    4848        private:
  • code/branches/output/src/libraries/util/output/LogWriter.cc

    r8794 r8795  
    7474
    7575        if (this->file_.is_open())
    76             this->printLine("Log file opened");
     76            this->printLine("Log file opened", level::none);
    7777        else
    7878            OutputManager::getInstance().pushMessage(level::user_warning, context::output(), "Failed to open log file. File logging disabled.");
     
    8383        if (this->file_.is_open())
    8484        {
    85             this->printLine("Log file closed");
     85            this->printLine("Log file closed", level::none);
    8686            this->file_.close();
    8787        }
     
    100100    }
    101101
    102     void LogWriter::printLine(const std::string& line)
     102    void LogWriter::printLine(const std::string& line, OutputLevel)
    103103    {
    104104        if (!this->file_.is_open())
  • code/branches/output/src/libraries/util/output/LogWriter.h

    r8794 r8795  
    4646
    4747        protected:
    48             virtual void printLine(const std::string& line);
     48            virtual void printLine(const std::string& line, OutputLevel level);
    4949
    5050        private:
Note: See TracChangeset for help on using the changeset viewer.