Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using Gst;
  2.  
  3. public class Rygel.LogHandler : GLib.Object {
  4. private const string CATEGORY = "rygel";
  5. private const string DESCRIPTION = "Debug output from Rygel";
  6. private const uint COLOR = DebugColorFlags.FG_YELLOW | DebugColorFlags.BOLD;
  7.  
  8. private static LogHandler log_handler; // Singleton
  9.  
  10. private DebugCategory category;
  11.  
  12. public static LogHandler get_default () {
  13. if (log_handler == null) {
  14. log_handler = new LogHandler ();
  15. }
  16.  
  17. return log_handler;
  18. }
  19.  
  20. private LogHandler () {
  21. this.category = DebugCategory (CATEGORY, COLOR, DESCRIPTION);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement