LogService

Show Deprecated
Not Creatable
Service

Important notes about this service: This service might have unexpected or unreliable behavior depending on how games and the game engine log things. Content might also be truncated. Don't rely on contents of events and messages emitted by this service for any important game logic.

A service that allows you to read outputted text.

Summary

Properties

Events

MessageOut(message: string, messageType: MessageType): RBXScriptSignal  

Fires when the client outputs text.

ServerMessageOut(message: string, messageType: MessageType, timestamp: number): RBXScriptSignal  


Methods

ExecuteScript(source: string): void  



Returns a table of tables, each with the message string, message type, and timestamp of a message that the client displays in the output window.

Properties

Events

HttpResultOut

Roblox Script Security

Parameters

httpResult: table

MessageOut

Fires when the client outputs text.

Parameters

message: string
messageType: MessageType

Code Samples

LogService.MessageOut

1local LogService = game:GetService("LogService")
2
3local messageLabel = Instance.new("Message")
4messageLabel.Parent = workspace
5
6local function onMessageOut(message, messageType)
7 messageLabel.Text = "The message was " .. message .. " and the type was " .. tostring(messageType)
8end
9
10LogService.MessageOut:Connect(onMessageOut)

OnHttpResultApproved

Roblox Script Security

Parameters

isApproved: boolean

ServerHttpResultOut

Roblox Script Security

Parameters

httpResult: table

ServerMessageOut

Roblox Script Security

Parameters

message: string
messageType: MessageType
timestamp: number

Methods

ExecuteScript

void
Roblox Script Security

Parameters

source: string

Returns

void

GetHttpResultHistory

Roblox Script Security

Returns

GetLogHistory

Unreliable Behavior This may have changing, unexpected or unreliable behavior depending on how the game engine logs things. It should not be relied upon for any important game logic.

Returns a table of tables, each with the message string, message type, and timestamp of a message that the client displays in the output window.

See also:


Returns

RequestHttpResultApproved

void
Roblox Script Security

Returns

void

RequestServerHttpResult

void
Roblox Script Security

Returns

void

RequestServerOutput

void
Roblox Script Security

Returns

void