Ignore:
Timestamp:
Jul 14, 2014, 8:37:03 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
0ab195
Parents:
ca940b
git-author:
Frederik Heber <heber@…> (06/19/14 16:26:39)
git-committer:
Frederik Heber <heber@…> (07/14/14 20:37:03)
Message:

logger and errorLogger have new setOutputStream().

  • this allows to redirect the logging streams in a program internally, e.g. in a GUI setting.
  • added unit test on this function.
  • TESTFIX: LogUnitTest used loggerStub which made the tests useless.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodePatterns/logger.hpp

    rca940b ref9dff6  
    2626public :
    2727  static ostream *nix;
     28  static ostream *out;
     29  static ostream *defaultout;
    2830  static int verbosity;
    2931
     
    3133  static void setVerbosity(int verbosityLevel);
    3234  static int getVerbosity();
     35  static void setOutputStream(ostream *_newout);
    3336
    3437protected:
Note: See TracChangeset for help on using the changeset viewer.