Skip to content

event_log

Note

Consult with event_log enum for available colors.

add

event_log.add(color: number, text: string)

Adds text to event log queue.

Parameters

Name Type Description
color number Color
text string Message

Usage

event_log.add(event_log.white, 'Hello World');

output

event_log.output()

Outputs queued text in a single line.

Usage

-- you can add multiple things to the log before outputting it
event_log.add(event_log.light_yellow, 'Hello ');
event_log.add(event_log.lime, 'World');

-- outputs all previously added entries in one line
event_log.output();