Gambas Documentation - /comp/gb/system/log

/comp/gb/system/log

# System.Log (gb)

Since 3.6

Static Sub Log ( Message As String )

Write a message to the system log.

### Message type

The message can start with some special sequence that will tell the system log what kind of message is written.

The message can begin with:

- `[error]`

- `[warning]`

- `[notice]`

- `[info]`

- `[debug]`

That sequence, if present, is removed from the message, and the corresponding message type is used.

See the man page of the `syslog` system call for more information.