Ignore:
Timestamp:
Nov 4, 2009, 7:56:04 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
4ef101, aa8542
Parents:
ec70ec
Message:

Huge change from ofstream * (const) out --> Log().

  • first shift was done via regular expressions
  • then via error messages from the code
  • note that class atom, class element and class molecule kept in parts their output stream, was they print to file.
  • make check runs fine
  • MISSING: Verbosity is not fixed for everything (i.e. if no endl; is present and next has Verbose(0) ...)

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/logunittest.cpp

    rec70ec r543ce4  
    1111
    1212#include "logunittest.hpp"
    13 #include "logger.hpp"
    14 #include "errorLogger.hpp"
    1513#include "log.hpp"
    1614#include "defs.hpp"
     
    3735{
    3836  logger::getInstance()->setVerbosity(2);
    39   cout << "Verbosity level is set to 2." << endl;
    40   log() << Verbose(0) << "Test level 0" << endl;
    41   log() << Verbose(1) << "Test level 1" << endl;
    42   log() << Verbose(2) << "Test level 2" << endl;
    43   log() << Verbose(3) << "Test level 3" << endl;
    44   log() << Verbose(4) << "Test level 4" << endl;
     37  Log() << Verbose(0) << "Verbosity level is set to 2." << endl;
     38  Log() << Verbose(0) << "Test level 0" << endl;
     39  Log() << Verbose(1) << "Test level 1" << endl;
     40  Log() << Verbose(2) << "Test level 2" << endl;
     41  Log() << Verbose(3) << "Test level 3" << endl;
     42  Log() << Verbose(4) << "Test level 4" << endl;
    4543
    46   log() << Verbose(0) << "Output a log message." << endl;
    47   elog() << Verbose(0) << "Output an error message." << endl;
     44  Log() << Verbose(0) << "Output a log message." << endl;
     45  eLog() << Verbose(0) << "Output an error message." << endl;
    4846  setVerbosity(3);
    49   log() << Verbose(4) << "This should not be printed." << endl;
    50   elog() << Verbose(4) << "This should not be printed." << endl;
     47  Log() << Verbose(4) << "This should not be printed." << endl;
     48  eLog() << Verbose(4) << "This should not be printed." << endl;
    5149};
    5250
Note: See TracChangeset for help on using the changeset viewer.