---
name: "al_open_native_text_log"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_open_native_text_log"
---

# al\_open\_native\_text\_log(3)

Allegro 5 API

## NAME

al\_open\_native\_text\_log - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_native_dialog.h>
  ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags)
  ```

## DESCRIPTION

Opens a window to which you can append log messages with [al\_append\_native\_text\_log(3)](/al_append_native_text_log/3.md). This can be useful for debugging if you don’t want to depend on a console being available.

Use [al\_close\_native\_text\_log(3)](/al_close_native_text_log/3.md) to close the window again.

The flags available are:

- ALLEGRO\_TEXTLOG\_NO\_CLOSE

  Prevent the window from having a close button. Otherwise, if the close button is pressed, an event is generated; see [al\_get\_native\_text\_log\_event\_source(3)](/al_get_native_text_log_event_source/3.md).

- ALLEGRO\_TEXTLOG\_MONOSPACE

  Use a monospace font to display the text.

Returns NULL if there was an error opening the window, or if text log windows are not implemented on the platform.

*Note:* On Android, logs can be viewed using logcat.

## SEE ALSO

[al\_append\_native\_text\_log(3)](/al_append_native_text_log/3.md), [al\_close\_native\_text\_log(3)](/al_close_native_text_log/3.md)
