#include "logstream.hxx"
bool logbuf::logging_enabled = true;
-fgDebugClass logbuf::logClass = FG_NONE;
-fgDebugPriority logbuf::logPriority = FG_INFO;
+sgDebugClass logbuf::logClass = SG_NONE;
+sgDebugPriority logbuf::logPriority = SG_INFO;
streambuf* logbuf::sbuf = NULL;
logbuf::logbuf()
}
void
-logbuf::set_log_level( fgDebugClass c, fgDebugPriority p )
+logbuf::set_log_level( sgDebugClass c, sgDebugPriority p )
{
logClass = c;
logPriority = p;
}
void
-logstream::setLogLevels( fgDebugClass c, fgDebugPriority p )
+logbuf::set_log_classes (sgDebugClass c)
+{
+ logClass = c;
+}
+
+sgDebugClass
+logbuf::get_log_classes ()
+{
+ return logClass;
+}
+
+void
+logbuf::set_log_priority (sgDebugPriority p)
+{
+ logPriority = p;
+}
+
+sgDebugPriority
+logbuf::get_log_priority ()
+{
+ return logPriority;
+}
+
+void
+logstream::setLogLevels( sgDebugClass c, sgDebugPriority p )
{
logbuf::set_log_level( c, p );
}