Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Gst;
- public class Rygel.LogHandler : GLib.Object {
- private const string CATEGORY = "rygel";
- private const string DESCRIPTION = "Debug output from Rygel";
- private const uint COLOR = DebugColorFlags.FG_YELLOW | DebugColorFlags.BOLD;
- private static LogHandler log_handler; // Singleton
- private DebugCategory category;
- public static LogHandler get_default () {
- if (log_handler == null) {
- log_handler = new LogHandler ();
- }
- return log_handler;
- }
- private LogHandler () {
- this.category = DebugCategory (CATEGORY, COLOR, DESCRIPTION);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement