10 #include <boost/iostreams/stream.hpp> 11 #include <boost/iostreams/tee.hpp> 25 void logMessage(
const char*
fmt, ...) noexcept;
26 void logError(const
char* fmt, ...) noexcept;
27 void logWarning(const
char* fmt, ...) noexcept;
28 void close() noexcept;
29 void enableLogToFile() noexcept;
30 void disableLogToFile() noexcept;
31 void enableLogToConsole() noexcept;
32 void disableLogToConsole() noexcept;
33 void enableLogToFileAndConsole() noexcept;
34 void disableLogToFileAndConsole() noexcept;
35 void setLogFile(const
std::
string &_fname) noexcept;
36 void setColour(
Colours _c) noexcept;
37 void enableLineNumbers() noexcept;
38 void disableLineNumbers() noexcept;
39 void enableTimeStamp() noexcept;
40 void disableTimeStamp() noexcept;
41 void disableColours() noexcept;
42 void enableColours() noexcept;
43 void setLineNumberPad(
unsigned int i) noexcept;
45 typedef boost::iostreams::tee_device<
std::ostream,
std::ofstream >
Tee;
51 Logger(const
std::
string &_fname) noexcept;
55 std::unique_ptr<Impl> m_impl;
main definition of types and namespace
boost::iostreams::tee_device< std::ostream, std::ofstream > Tee
boost::iostreams::stream< Tee > TeeStream
implementation files for RibExport class
a simple singleton template inherited by other classes
Singleton template added to NGL framework 20/04/10 by jmacey.