## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Messages

- Goto spec source

# Description

    package Glib.Messages is

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

# Types

### Log_Level_Flags

- Goto declaration in source

    type Log_Level_Flags is mod 2 ** 32;

log levels and flags.

### Log_Function

- Goto declaration in source

    type Log_Function is access procedure
         (Log_Domain : String;
          Log_Level  : Log_Level_Flags;
          Message    : UTF8_String);

### Log_Handler_Id

- Goto declaration in source

    type Log_Handler_Id is new Guint;

# Constants & Global variables

### Log_Flag_Recursion

- Goto declaration in source

(Log_Level_Flags)

    Log_Flag_Recursion : constant Log_Level_Flags := 2 ** 0;

### Log_Flag_Fatal

- Goto declaration in source

(Log_Level_Flags)

    Log_Flag_Fatal     : constant Log_Level_Flags := 2 ** 1;

### Log_Level_Error

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Error    : constant Log_Level_Flags := 2 ** 2;

always fatal

### Log_Level_Critical

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Critical : constant Log_Level_Flags := 2 ** 3;

### Log_Level_Warning

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Warning  : constant Log_Level_Flags := 2 ** 4;

### Log_Level_Message

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Message  : constant Log_Level_Flags := 2 ** 5;

### Log_Level_Info

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Info     : constant Log_Level_Flags := 2 ** 6;

### Log_Level_Debug

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Debug    : constant Log_Level_Flags := 2 ** 7;

### Log_Level_Mask

- Goto declaration in source

(Log_Level_Flags)

    Log_Level_Mask     : constant Log_Level_Flags :=
         not (Log_Flag_Recursion or Log_Flag_Fatal);

### Log_Fatal_Mask

- Goto declaration in source

(Log_Level_Flags)

    Log_Fatal_Mask     : constant Log_Level_Flags :=
         Log_Flag_Recursion or Log_Level_Error;

log levels that are considered fatal by default

# Subprograms & Entries

### Log_Set_Handler

- Goto spec in source

    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.

### Log_Remove_Handler

- Goto spec in source

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

Unset a given handler.

### Log_Default_Handler

- Goto spec in source

    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.

### Log

- Goto spec in source

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

Log a message through the glib logging facility.

### Log_Set_Fatal_Mask

- Goto spec in source

    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.

### Log_Set_Always_Fatal

- Goto spec in source
- Goto body in source

    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.