Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2011, 5:18:08 AM (13 years ago)
Author:
rgrieder
Message:

Improved logging to a file by rewriting the log according to the right debug level. Also, failure to open the file is now being handled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/libraries/util/OutputHandler.h

    r8516 r8517  
    133133            //! Set the log path once the program has been properly initialised
    134134            void setLogPath(const std::string& path);
     135            /** Rewrites the log file (completely respects the current debug level).
     136                Once disableMemoryLog() has been called, this function will do nothing.
     137            */
     138            void rewriteLogFile();
     139
    135140            //! Disables the std::cout stream for output
    136141            void disableCout();
     
    211216            //! Dummy operator required by Debug.h for the ternary operator
    212217            inline operator int() const { return 0; }
    213 
    214             //! Name of the OutputListener that writes to the log file
    215             static const std::string logFileOutputListenerName_s;
    216218
    217219        private:
Note: See TracChangeset for help on using the changeset viewer.