41 #define LOG(x) do { *(BESLog::TheLog()) << x ; } while( 0 ) 42 #define VERBOSE(x) do { if (BESLog::TheLog()->is_verbose()) *(BESLog::TheLog()) << x ; } while( 0 ) 91 std::ofstream * _file_buffer;
92 std::string _file_name;
167 typedef std::ios& (*p_ios_manipulator)(std::ios&);
169 typedef std::ostream& (*p_ostream_manipulator)(std::ostream&);
184 virtual void dump(std::ostream &strm)
const;
191 std::ostream *get_log_ostream()
~BESLog()
Cleans up the logging mechanism.
BESLog & operator<<(std::string &)
Overloaded inserter that writes the specified string.
void verbose_off()
turns off verbose logging
bool is_verbose()
Returns true if verbose logging is requested.
void resume()
Resumes logging after being suspended.
virtual void dump(std::ostream &strm) const
dumps information about this object
Base object for bes objects.
void suspend()
Suspend logging of any information until resumed.
void verbose_on()
turn on verbose logging
std::ostream &(* p_ostream_manipulator)(std::ostream &)
Defines a data type p_std::ostream_manipulator "pointer to function that takes std::ostream& and retu...
void dump_time()
Protected method that dumps the date/time to the log file.
BESLog()
constructor that sets up logging for the application.
Provides a mechanism for applications to log information to an external file.
std::ios &(* p_ios_manipulator)(std::ios &)
Defines a data type p_ios_manipulator "pointer to function that takes ios& and returns ios&"...