LogService
A service that allows you to read outputted text.
Memory category | Instances |
---|
Member index 18
Description
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.
History 35
- 582 Add ClearOutput
- 573 Change ReturnType of RequestServerOutput from void to null
- 573 Change ReturnType of RequestServerHttpResult from void to null
- 573 Change ReturnType of RequestHttpResultApproved from void to null
- 573 Change ReturnType of ExecuteScript from void to null
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 512 Change Parameters of ServerMessageOut from (message: string, messageType: MessageType, timestamp: int) to (message: string, messageType: MessageType, timestamp: double)
- 462 Change ThreadSafety of ServerMessageOut from to Unsafe
- 462 Change ThreadSafety of ServerHttpResultOut from to Unsafe
- 462 Change ThreadSafety of OnHttpResultApproved from to Unsafe
- 462 Change ThreadSafety of MessageOut from to Unsafe
- 462 Change ThreadSafety of HttpResultOut from to Unsafe
- 462 Change ThreadSafety of RequestServerOutput from to Unsafe
- 462 Change ThreadSafety of RequestServerHttpResult from to Unsafe
- 462 Change ThreadSafety of RequestHttpResultApproved from to Unsafe
- 462 Change ThreadSafety of GetLogHistory from to Unsafe
- 462 Change ThreadSafety of GetHttpResultHistory from to Unsafe
- 462 Change ThreadSafety of ExecuteScript from to Unsafe
- 303 Add ServerHttpResultOut
- 303 Add OnHttpResultApproved
- 303 Add RequestServerHttpResult
- 303 Add RequestHttpResultApproved
- 301 Add HttpResultOut
- 301 Add GetHttpResultHistory
- 161 Add ExecuteScript
- 144 Add ServerMessageOut
- 144 Add RequestServerOutput
- 144 Add GetLogHistory
- 136 Add MessageOut
- 136 Add LogService
Members 18
ClearOutput
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Clears the Roblox Studio output window.
The log history is also cleared, such that LogService.GetLogHistory will not return any entries from before the LogService.ClearOutput call.
Thread safety | Unsafe |
---|
History 1
- 582 Add ClearOutput
ExecuteScript
Parameters (1) | ||
---|---|---|
source | string | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of ExecuteScript from void to null
- 462 Change ThreadSafety of ExecuteScript from to Unsafe
- 161 Add ExecuteScript
GetHttpResultHistory
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetHttpResultHistory from to Unsafe
- 301 Add GetHttpResultHistory
GetLogHistory
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
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:
- LogService.MessageOut - An event that fires when text is added to the output from the client
Thread safety | Unsafe |
---|
History 2
- 462 Change ThreadSafety of GetLogHistory from to Unsafe
- 144 Add GetLogHistory
HttpResultOut
Parameters (1) | |
---|---|
httpResult | Dictionary |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of HttpResultOut from to Unsafe
- 301 Add HttpResultOut
MessageOut
Parameters (2) |
---|
Fires when the client outputs text.
Thread safety | Unsafe |
---|
History 2
- 462 Change ThreadSafety of MessageOut from to Unsafe
- 136 Add MessageOut
OnHttpResultApproved
Parameters (1) | |
---|---|
isApproved | bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of OnHttpResultApproved from to Unsafe
- 303 Add OnHttpResultApproved
RequestHttpResultApproved
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of RequestHttpResultApproved from void to null
- 462 Change ThreadSafety of RequestHttpResultApproved from to Unsafe
- 303 Add RequestHttpResultApproved
RequestServerHttpResult
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of RequestServerHttpResult from void to null
- 462 Change ThreadSafety of RequestServerHttpResult from to Unsafe
- 303 Add RequestServerHttpResult
RequestServerOutput
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of RequestServerOutput from void to null
- 462 Change ThreadSafety of RequestServerOutput from to Unsafe
- 144 Add RequestServerOutput
ServerHttpResultOut
Parameters (1) | |
---|---|
httpResult | Dictionary |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of ServerHttpResultOut from to Unsafe
- 303 Add ServerHttpResultOut
ServerMessageOut
Parameters (3) | |
---|---|
timestamp | double |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 512 Change Parameters of ServerMessageOut from (message: string, messageType: MessageType, timestamp: int) to (message: string, messageType: MessageType, timestamp: double)
- 462 Change ThreadSafety of ServerMessageOut from to Unsafe
- 144 Add ServerMessageOut