[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Glib.Messages

This package provides low level routines for enabling, disabling and modifying the way log messages are handled in glib/gdk/gtk.

- Glib.Messages Types
- Glib.Messages Subprograms

## Types

    type Log_Function is access procedure

    type Log_Handler_Id is new Guint;

    type Log_Level_Flags is mod 2 ** 32;

| log levels and flags.

## Subprograms

### log levels

    function Log_Set_Handler
      (Log_Domain         :        String;
       Log_Levels         :        Log_Level_Flags;
       Log_Func           :        Log_Function)
       return Log_Handler_Id;

| Set a log function for the given log levels, and return its id.

    procedure Log_Remove_Handler
      (Log_Domain         :        String;
       Handler_Id         :        Log_Handler_Id);

| Unset a given handler.

    procedure Log_Default_Handler
      (Log_Domain         :        String;
       Log_Levels         :        Log_Level_Flags;
       Message            :        UTF8_String);

| The default log handler. Can be called e.g. within a user defined log handler.

    procedure Log
      (Log_Domain         :        String;
       Log_Levels         :        Log_Level_Flags;
       Message            :        UTF8_String);

| Log a message through the glib logging facility.

    function Log_Set_Fatal_Mask
      (Log_Domain         :        String;
       Fatal_Mask         :        Log_Level_Flags)
       return Log_Level_Flags;

| Set the level at which messages are considered fatal for a given domain.

    function Log_Set_Always_Fatal
      (Fatal_Mask         :        Log_Level_Flags)
       return Log_Level_Flags;

| Set the level at which messages are considered fatal for any domain.

[Contents] [Back] [Prev] [Up] [Next] [Forward]