OpenTTD AI API: AILog Class Reference

OpenTTD AI API 15.0-RC1

Static Public Member Functions
AILog Class Reference

Class that handles all log related functions. More...

`#include <script_log.hpp>`

Inheritance diagram for AILog:

## Static Public Member Functions
static void | Info (string message)
| Print an Info message to the logs.
static void | Warning (string message)
| Print a Warning message to the logs.
static void | Error (string message)
| Print an Error message to the logs.

## Detailed Description

Class that handles all log related functions.

## Member Function Documentation

## ◆ Error()

static void AILog::Error | ( | string | message | ) |
| static

Print an Error message to the logs.

Parameters

  message | The message to log.

Note
  Special characters such as U+0000-U+0019 and U+E000-U+E1FF are not supported and removed or replaced by a question mark. This includes newlines and tabs.

## ◆ Info()

static void AILog::Info | ( | string | message | ) |
| static

Print an Info message to the logs.

Parameters

  message | The message to log.

Note
  Special characters such as U+0000-U+0019 and U+E000-U+E1FF are not supported and removed or replaced by a question mark. This includes newlines and tabs.

## ◆ Warning()

static void AILog::Warning | ( | string | message | ) |
| static

Print a Warning message to the logs.

Parameters

  message | The message to log.

Note
  Special characters such as U+0000-U+0019 and U+E000-U+E1FF are not supported and removed or replaced by a question mark. This includes newlines and tabs.