LogServiceクラス
ひとことで言うと
LogServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):A service that allows you to read outputted text.
クラスの関係
メソッド(8)
| 名前と書き方 | 説明 |
|---|---|
ClearOutputLogService:ClearOutput(): () | Clears Roblox Studio's **Output** window. |
ErrorLogService:Error(message: string, context: Dictionary): () | Logs a message at the MessageType.MessageError level and throws a structured error with optional context. |
GetLogHistoryLogService:GetLogHistory(): 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. |
GetLoggerLogService:GetLogger(name: string): Logger | Returns a top-level Logger with the given name, creating it if it does not already exist. |
InfoLogService:Info(message: string, context: Dictionary): () | Logs a message at the MessageType.MessageInfo level with optional structured context. |
LogLogService:Log(messageType: MessageType, message: string, context: Dictionary): () | Logs a message at the specified level with optional structured context. |
OutputLogService:Output(message: string, context: Dictionary): () | Logs a message at the MessageType.MessageOutput level with optional structured context. |
WarnLogService:Warn(message: string, context: Dictionary): () | Logs a message at the MessageType.MessageWarning level with optional structured context. |
イベント(1)
| 名前と書き方 | 説明 |
|---|---|
MessageOutLogService.MessageOut(message: string, messageType: MessageType, context: Dictionary) | Fires when the client outputs text. |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
LogServiceを使う記事
英語の説明とメンバーの一覧は、Roblox Creator Documentation(LogService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。