LogService
A service that allows you to read outputted text.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
| Memory category | Instances |
|---|
Member index 18
Description
LogService allows you to log structured log entries and read outputted text.
Warning
This service might have unexpected or unreliable behavior and content might be truncated. Don't rely on contents of events and messages emitted by this service for any important game logic.
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 Roblox Studio's Output window. The log history is also cleared,
such that LogService:GetLogHistory() will not return any entries
from before the 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 | ||
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.
| 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