rojo/.cursor/rules/roblox/reference/engine/classes/LogService.yaml
2026-02-02 12:08:47 -06:00

96 lines
2.7 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: LogService
type: class
memory_category: Instances
summary: |
A service that allows you to read outputted text.
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.
code_samples: []
inherits:
- Instance
descendants: []
tags:
- NotCreatable
- Service
deprecation_message: ''
properties: []
methods:
- name: LogService:ClearOutput
summary: |
Clears the Roblox Studio output window.
description: |
Clears the Roblox Studio output window.
The log history is also cleared, such that
`Class.LogService.GetLogHistory` will not return any entries from before
the `Class.LogService.ClearOutput` call.
code_samples: []
parameters: []
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities:
- Logging
- name: LogService:GetLogHistory
summary: |
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.
description: |
**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:
- `Class.LogService.MessageOut` - An event that fires when text is added
to the output from the client
code_samples: []
parameters: []
returns:
- type: Array
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities:
- Logging
events:
- name: LogService.MessageOut
summary: |
Fires when the client outputs text.
description: |
Fires when the client outputs text.
code_samples:
- LogService-MessageOut1
parameters:
- name: message
type: string
default:
summary: ''
- name: messageType
type: MessageType
default:
summary: ''
tags: []
deprecation_message: ''
security: None
capabilities:
- Logging
callbacks: []