---
name: "al_get_shader_log"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_shader_log/3alleg5"
---

# al\_get\_shader\_log(3alleg5)

Allegro 5 API

## NAME

al\_get\_shader\_log - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  const char *al_get_shader_log(ALLEGRO_SHADER *shader)
  ```

## DESCRIPTION

Return a read-only string containing the information log for a shader program. The log is updated by certain functions, such as al\_attach\_shader\_source(3alleg5) or al\_build\_shader(3alleg5) when there is an error.

This function never returns NULL.

## SINCE

5\.1.0

## SEE ALSO

al\_attach\_shader\_source(3alleg5), al\_attach\_shader\_source\_file(3alleg5), al\_build\_shader(3alleg5)
