GLib.Log Class
Message logging functions.

See Also: Log Members

Syntax

public class Log

Remarks

C# Example

//Some common logging methods. 
// Print the messages for the NULL domain 
LogFunc logFunc = new LogFunc (Log.PrintLogFunction); 
Log.SetLogHandler (null, LogLevelFlags.All, logFunc); 
// Print messages and stack trace for Gtk critical messages 
logFunc = new LogFunc (Log.PrintTraceLogFunction); 
Log.SetLogHandler ("Gtk", LogLevelFlags.Critical, logFunc); 

Example

Example

//Some common logging methods.

// Print the messages for the NULL domain
LogFunc logFunc = new LogFunc (Log.PrintLogFunction);
Log.SetLogHandler (null, LogLevelFlags.All, logFunc);

// Print messages and stack trace for Gtk critical messages
logFunc = new LogFunc (Log.PrintTraceLogFunction);
Log.SetLogHandler ("Gtk", LogLevelFlags.Critical, logFunc);
      

Requirements

Namespace: GLib
Assembly: glib-sharp (in glib-sharp.dll)
Assembly Versions: 2.12.0.0