Log.cpp

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @file   Log.inl
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006 
00007    @brief
00008       Unified logging functionality for Milton debugging output
00009    <!-------------------------------------------------------------------->**/
00010 
00011 #include "Log.h"
00012 
00013 // initialize static members of Log
00014 std::ostream Log::s_null(NULL);
00015 
00016 void Log::init() {
00017    if (_debug)
00018       _depth = _getDepth();
00019 }
00020 
00021 void Log::setDebug(bool debug) {
00022    if (debug != _debug) {
00023       _debug = debug;
00024       
00025       // TODO: figure out out to do this sheise cleanly..
00026       /*if (debug) {
00027          warning = DEBUG_STREAM_WARNING;
00028          error   = DEBUG_STREAM_ERROR;
00029          info    = DEBUG_STREAM_INFO;
00030       } else {
00031          warning = DEFAULT_STREAM_WARNING;
00032          error   = DEFAULT_STREAM_ERROR;
00033          info    = DEFAULT_STREAM_INFO;
00034       }*/
00035    }
00036 }
00037 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6