- // Set the logging level of subsequent messages.
- void set_log_state( fgDebugClass c, fgDebugPriority p );
+ /**
+ * Set the logging level of subsequent messages.
+ * @param c debug class
+ * @param p priority
+ */
+ void set_log_state( sgDebugClass c, sgDebugPriority p );
+
+ bool would_log( sgDebugClass c, sgDebugPriority p ) const;
+
+ /**
+ * Set the global logging level.
+ * @param c debug class
+ * @param p priority
+ */
+ static void set_log_level( sgDebugClass c, sgDebugPriority p );
+
+
+ /**
+ * Set the allowed logging classes.
+ * @param c All enabled logging classes anded together.
+ */
+ static void set_log_classes (sgDebugClass c);
+
+
+ /**
+ * Get the logging classes currently enabled.
+ * @return All enabled debug logging anded together.
+ */
+ static sgDebugClass get_log_classes ();
+
+
+ /**
+ * Set the logging priority.
+ * @param c The priority cutoff for logging messages.
+ */
+ static void set_log_priority (sgDebugPriority p);
+